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

0-mass fact #412

Open
BlakeMScurr opened this issue Oct 1, 2018 · 0 comments
Open

0-mass fact #412

BlakeMScurr opened this issue Oct 1, 2018 · 0 comments

Comments

@BlakeMScurr
Copy link
Contributor

I would be nice to have a fact that can group its children, always matches, and doesn't consume a node. Suppose we want to match sibling for loops somewhere in a function:

go.func_decl:
  go.nomass(depth = any):
    go.for_stmt
    go.for_stmt

If we used go.element instead of go.nomass we wouldn't match for statements that are direct children of the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant