harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit cba5917f5dd3cfc7336db55f3150fb1a5baa6e0e
parent c2fa2f19835476f038f5167457932fd2a07ac18c
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Mon, 11 Jan 2021 11:26:55 -0500

lex: add alloc, append, and free tokens

Diffstat:
Minclude/lex.h | 3+++
Msrc/lex.c | 3+++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/lex.h b/include/lex.h @@ -12,6 +12,8 @@ enum lexical_token { T_ATTR_SYMBOL, T_ATTR_TEST, T_ABORT, + T_ALLOC, + T_APPEND, T_AS, T_ASSERT, T_BOOL, @@ -28,6 +30,7 @@ enum lexical_token { T_FALSE, T_FN, T_FOR, + T_FREE, T_I16, T_I32, T_I64, diff --git a/src/lex.c b/src/lex.c @@ -21,6 +21,8 @@ static const char *tokens[] = { [T_ATTR_SYMBOL] = "@symbol", [T_ATTR_TEST] = "@test", [T_ABORT] = "abort", + [T_ALLOC] = "alloc", + [T_APPEND] = "append", [T_AS] = "as", [T_ASSERT] = "assert", [T_BOOL] = "bool", @@ -37,6 +39,7 @@ static const char *tokens[] = { [T_FALSE] = "false", [T_FN] = "fn", [T_FOR] = "for", + [T_FREE] = "free", [T_I16] = "i16", [T_I32] = "i32", [T_I64] = "i64",