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

Global constants #17

Open
3 tasks
polsys opened this issue Dec 18, 2018 · 0 comments
Open
3 tasks

Global constants #17

polsys opened this issue Dec 18, 2018 · 0 comments
Labels
area-Parser Lexing and syntactic analysis. area-SemanticAnalysis Semantic analysis and intermediate code generation. type-Feature A self-contained, possibly larger, new behavior.

Comments

@polsys
Copy link
Owner

polsys commented Dec 18, 2018

  • Parse global constants
  • Compile and store them
    • How should the compilation happen? Constants can reference each other
    • Cyclical dependencies must be disallowed
  • Compile references to them

Should global constants live in the same namespace as functions, or can they be distinguished by the usage? Local variables should certainly shadow global constants.

@polsys polsys added type-Feature A self-contained, possibly larger, new behavior. area-Parser Lexing and syntactic analysis. area-SemanticAnalysis Semantic analysis and intermediate code generation. labels Dec 18, 2018
@polsys polsys added this to the 0.2 milestone Apr 23, 2019
@polsys polsys removed this from the 0.2 milestone May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Parser Lexing and syntactic analysis. area-SemanticAnalysis Semantic analysis and intermediate code generation. type-Feature A self-contained, possibly larger, new behavior.
Projects
None yet
Development

No branches or pull requests

1 participant