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

Make parser unaware of declaration ordering #37

Open
ogrergo opened this issue Oct 10, 2022 · 0 comments
Open

Make parser unaware of declaration ordering #37

ogrergo opened this issue Oct 10, 2022 · 0 comments

Comments

@ogrergo
Copy link
Contributor

ogrergo commented Oct 10, 2022

At the moment, the order of declaration (@node, @word, @ParaNode etc...) matter : if a node depends to a foward declared node, the parser will return an error.

The goal is make the parser support disordered declaration.

This will implies adding an extra step of contextual check on the AST. This new pass goal will be to build the dependency tree between PathTree. That dependency tree will be then used by the check_* contextual pass to perform the checking on Identifier AST.

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