Add support for the return keyword.

This commit is contained in:
2018-03-08 21:31:24 -08:00
parent f3f1cc8c43
commit bb61dbcd54
6 changed files with 38 additions and 5 deletions

View File

@@ -64,6 +64,7 @@ enum libab_lexer_token_e {
TOKEN_KW_DO,
TOKEN_KW_ARROW,
TOKEN_KW_FUN,
TOKEN_KW_RETURN,
TOKEN_LAST
};

View File

@@ -22,7 +22,8 @@ enum libab_tree_variant_e {
TREE_DOWHILE,
TREE_CALL,
TREE_FUN,
TREE_FUN_PARAM
TREE_FUN_PARAM,
TREE_RETURN
};
/**