Record which tokens are fragile when lexing
This commit is contained in:
parent
51998ac5bb
commit
d713054d61
12 changed files with 413 additions and 368 deletions
|
|
@ -302,6 +302,9 @@ class CCodeGenerator {
|
|||
case LexActionTypeAccept:
|
||||
line("ACCEPT_TOKEN(" + symbol_id(action.symbol) + ");");
|
||||
break;
|
||||
case LexActionTypeAcceptFragile:
|
||||
line("ACCEPT_FRAGILE_TOKEN(" + symbol_id(action.symbol) + ");");
|
||||
break;
|
||||
case LexActionTypeError:
|
||||
line("LEX_ERROR();");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue