The Grammar |
---|
<expr> |    ::=    | <number> |
   |    | <symbol> | |
   |    | ( lambda ( {<symbol>}* ) <expr> ) | |
   |    | ( if <expr> <expr> <expr> ) | |
   |    | ( <prim-op> <expr> <expr> ) | |
   |    | ( <expr> {<expr>}* ) | |
<prim-op> |    ::=    | add |
   |    | sub | |
   |    | mul | |
   |    | div | |
   |    | mod |
Abstract Syntax |
---|
Parser |
---|
Simple Interpreter |
---|