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

Resolve Variables and Relations while parsing using semantic predicates of ANTLR #30

Closed
ferhaterata opened this issue Feb 13, 2017 · 0 comments

Comments

@ferhaterata
Copy link
Member

ferhaterata commented Feb 13, 2017

Algorithm: If a variable is defined in a quantifier, comprehension or let declaration, semantically resolve all identifiers with the same name as variables in the scope of that declaration. Resolve other identifiers in the scope as relations. This approach maintains a good approximation for a semantically valid parse tree since the variables are always declared before using them. Variables may shadow each other, and may shadow field names. Conventional lexical scoping, with the innermost binding taking precedence.

@ferhaterata ferhaterata self-assigned this Feb 13, 2017
@ferhaterata ferhaterata changed the title [Recognizer] Resolve Variables and Relations while parsing using semantic predicates of ANTLR Resolve Variables and Relations while parsing using semantic predicates of ANTLR Feb 13, 2017
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

2 participants