Parsing is extremely contextual, and requires an understanding of the rules of the language.
- Start - Starts the program syntax
- End - Ends the program syntax
- Define - Creates a new variable in the format (define)(type)(id)(value).
- Update - Updates a value in the program in the format (id)(op)(val)
- Conditional - A basic if-statement. You can have nested if-statements. Format is(comparator)(expr)
- (type) = The specified type of the variable.
- (id) = The name of the variable.
- (value) = The value of that variable relative to the type. (For example: strings and references can be interchanged)
- (op) = Any valid computational operator. (=,+,-,*,/,%)
- (comparator) = A comparison statement. (a < b)
- (expr) = An expression. It could be a Define, Update, or Conditional statement.