harec

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

commit d167704f1e5339b05d80ba81761f4c5cd4289669
parent 2a8e4f699e93cf66c15b8de170d4924c5d65efc5
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 18 Jan 2021 19:23:27 -0500

lex: add defer keyword

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

diff --git a/include/lex.h b/include/lex.h @@ -22,6 +22,7 @@ enum lexical_token { T_CONST, T_CONTINUE, T_DEF, + T_DEFER, T_ELSE, T_ENUM, T_EXPORT, diff --git a/src/lex.c b/src/lex.c @@ -31,6 +31,7 @@ static const char *tokens[] = { [T_CONST] = "const", [T_CONTINUE] = "continue", [T_DEF] = "def", + [T_DEFER] = "defer", [T_ELSE] = "else", [T_ENUM] = "enum", [T_EXPORT] = "export",