From eae25fcb847756d78d5f47393885672ecc6b69b7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 30 Sep 2025 23:11:53 -0400 Subject: np: lex: Annotate token types Signed-off-by: Ian Moffett --- src/sys/include/np/lex.h | 16 ++++++++-------- 1 file 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, /* '' */ + 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; /* -- cgit v1.2.3