Add true and false keywords to the parser.

This commit is contained in:
2018-08-10 16:06:30 -07:00
parent 7c8c547540
commit 3b79b5751a
5 changed files with 49 additions and 3 deletions

View File

@@ -60,6 +60,8 @@ enum libab_lexer_token_e {
TOKEN_OP_PREFIX,
TOKEN_OP_POSTFIX,
TOKEN_OP_RESERVED,
TOKEN_KW_TRUE,
TOKEN_KW_FALSE,
TOKEN_KW_IF,
TOKEN_KW_ELSE,
TOKEN_KW_WHILE,

View File

@@ -19,6 +19,8 @@ enum libab_tree_variant_e {
TREE_POSTFIX_OP,
TREE_BLOCK,
TREE_VOID,
TREE_TRUE,
TREE_FALSE,
TREE_IF,
TREE_WHILE,
TREE_DOWHILE,