diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-30 23:11:53 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-30 23:11:53 -0400 |
commit | eae25fcb847756d78d5f47393885672ecc6b69b7 (patch) | |
tree | ec9baf38045ae73dd70536fe398a5f903b757310 /src/sys/include | |
parent | 3412a8527d537a34124ecb87b57cf7ee94ed2c48 (diff) |
np: lex: Annotate token types
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/np/lex.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sys/include/np/lex.h b/src/sys/include/np/lex.h index 2efc14e..d6a6810 100644 --- a/src/sys/include/np/lex.h +++ b/src/sys/include/np/lex.h @@ -48,18 +48,18 @@ struct np_work; */ typedef enum { /* Symbols */ - TT_LPAREN, - TT_RPAREN, - TT_IDENT, - TT_COMMA, + TT_LPAREN, /* '(' */ + TT_RPAREN, /* ')' */ + TT_IDENT, /* '<IDENTIFIER>' */ + TT_COMMA, /* ',' */ /* Types */ - TT_U8, + TT_U8, /* 'u8' */ /* Keywords */ - TT_BEGIN, - TT_PROC, - TT_END, + TT_BEGIN, /* 'begin' */ + TT_PROC, /* 'proc' */ + TT_END, /* 'end' */ } tt_t; /* |