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

Add additional semantic-checking passes over the AST #44

@abhimadan

Description

@abhimadan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions