This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** This is basically The Lambda Calculus itself. This also forms our AST. | |
*/ | |
enum Expr: | |
case Application(lhs: Expr, rhs: Expr) | |
case Function(param: Token.Identifier, body: Expr) | |
case Atom(identifier: Token.Identifier) | |
/** Characters that make our syntax, e.g. (λx.x λx.x) λy.y | |
*/ | |
enum Token: |