Author(s): Spencer Tong, Harrison Williams, Adolfo Bugarin
| Symbol in Language | Token Name |
|---|---|
| fn | Func |
| <- | Return |
| # | Int |
| > | Read |
| < | Write |
| ... | While |
| ? | If |
| ! | Else |
| b | Break |
| c | Continue |
| ( | LeftParen |
| ) | RightParen |
| { | LeftCurly |
| } | RightCurly |
| [ | LeftBracket |
| ] | RightBracket |
| _ | Comma |
| :/ | Semicolon |
| p | plus |
| s | Subtract |
| m | Multiply |
| d | Divide |
| rem | Modulus |
| e | Assign |
| lt | LessThan |
| leq | LessEqual |
| gt | GreaterThan |
| geq | GreaterEqual |
| is | Equality |
| ne | NotEqual |
| "variable_name" | Ident |
| integer number | Num |
| START | main |
Comments can be multi-line comments encapsulated with quotes. For example:
int x; "This is a variable declaration"