frontend: Add handling for comments

This commit introduces a comment token which is to be ignored by the
parser.

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-03-25 19:45:51 -04:00
parent b769c1cdeb
commit 08f07e474e
3 changed files with 24 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ typedef enum {
TT_NAME, /* [name] */
TT_NEWLINE, /* [newline] */
TT_SHELLBLOCK, /* [shellblock] */
TT_COMMENT, /* [comment] */
TT_CC, /* '.cc' */
TT_LD, /* '.ld' */
TT_COLON, /* ':' */