@@ -420,6 +420,10 @@ lexer_scan(struct rifle_state *state, struct token *res)
|
||||
res->type = TT_SEMI;
|
||||
res->c = c;
|
||||
return 0;
|
||||
case ',':
|
||||
res->type = TT_COMMA;
|
||||
res->c = c;
|
||||
return 0;
|
||||
case '#':
|
||||
if ((c = lexer_nom(state, false)) == '\0') {
|
||||
trace_error(state, "unexpected end of file\n");
|
||||
|
||||
@@ -57,6 +57,7 @@ static const char *toktab[] = {
|
||||
[TT_LBRACE] = qtok("{"),
|
||||
[TT_RBRACE] = qtok("}"),
|
||||
[TT_SEMI] = qtok(";"),
|
||||
[TT_COMMA] = qtok(","),
|
||||
[TT_F] = qtok(".f"),
|
||||
[TT_STRUCT] = qtok(".struct"),
|
||||
[TT_EXTERN] = qtok(".extern"),
|
||||
|
||||
Reference in New Issue
Block a user