Remove separate token types from lexer and parser. #5
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With the new update to accommodate operators that are both infix and prefix, the need for a separate "prefix" and "postfix" token grows smaller. They should be replaced by a single "operator" token, and their distinction be stored in another enum, like
libab_operator_variant
.On second thought, the parser still needs to make that distinction. Perhaps this requires more thought, or maybe operators need to be made specific during parsing.
Tokens are now assigned a type after they're parsed. They all start as "TOKEN_OP".