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

Parser: Add more metadata to parsed AST nodes #9

Open
bakkdoor opened this issue Nov 24, 2022 · 0 comments
Open

Parser: Add more metadata to parsed AST nodes #9

bakkdoor opened this issue Nov 24, 2022 · 0 comments
Labels
enhancement New feature or request parser Related to parser / language grammar

Comments

@bakkdoor
Copy link
Owner

Use rogato_common::ast::NodeFactory in parser via rogato_parser::ParserContext and assign each node a unique ID for easier handling down the road (e.g. in type-checker for storing & looking up types of ast::Expression nodes.

We should also store the source location (file, line and columns) for each node to improve error reporting during type checking, codegen or even in the interpreter.

@bakkdoor bakkdoor added enhancement New feature or request parser Related to parser / language grammar labels Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request parser Related to parser / language grammar
Projects
None yet
Development

No branches or pull requests

1 participant