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

Refactoring AST type expression decoration #12

Open
epatrizio opened this issue Sep 15, 2022 · 0 comments
Open

Refactoring AST type expression decoration #12

epatrizio opened this issue Sep 15, 2022 · 0 comments

Comments

@epatrizio
Copy link
Owner

epatrizio commented Sep 15, 2022

AST type expression decoration implementation is not optimal, not elegant!
Actually, everything is in the same AST (localization and expression type).
The best practice is to construct different AST.
In our context, there would be 2 AST :
The typer would take the AST from syntactic analyzer (so with localization) to build a new AST with expression typing, to pass it to the compiler.

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

No branches or pull requests

1 participant