Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for nd_vars and Merge pattern matchers #91

Merged
merged 10 commits into from
Mar 2, 2025

Conversation

AjayBrahmakshatriya
Copy link
Collaborator

This changeset adds two new features -

  1. Added basic support for nd_vars a new type for sampling and constraining non-deterministic values. The use case is for implementing backward data-flow analyses. Currently support for nd_vars has been added. bool supports a basic requires_equal function. Sample 61 has been added to test the same.

  2. Merged support for pattern matches: A new type matcher::pattern has been introduced that allows expressing patterns with arbitrary level of abstraction. Two interfaces for matchers and replacers have been introduced. patterns support captures of named expressions and common overloads for simplifying pattern creation. Support for statement matching will be added later. Sample 62 has been added to test the same.

@AjayBrahmakshatriya AjayBrahmakshatriya merged commit 7d1701b into BuildIt-lang:master Mar 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant