Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Add additional semantic-checking passes over the AST #44

Open
abhimadan opened this issue Nov 12, 2017 · 0 comments
Open

Add additional semantic-checking passes over the AST #44

abhimadan opened this issue Nov 12, 2017 · 0 comments

Comments

@abhimadan
Copy link
Member

We currently do some simple type-checking while constructing the AST, but some things we can't check include:

  • variable scoping
  • different type restrictions for different types of operators (e.g. different constraints for multiplication vs addition)

We can add a pass for each type of check. This will make the library slower at runtime, but won't be a problem once we transition to a DSL that's compiled with webpack.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant