Name internally generated tokens with double-underscore

This commit is contained in:
josh committed 2023-03-13 14:13:13 -04:00
1 parent d10e982fc8
commit f402315201
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -360,7 +360,7 @@ class <%= @classname %>
}
else if (attempt_match_info.length == 0u)
{
result.token = TOKEN_0EOF;
result.token = TOKEN___EOF;
result.type = Result.Type.TOKEN;
return;
}
@@ -471,7 +471,7 @@ class <%= @classname %>
if (shift_state == 0xFFFFFFFFu)
{
shift_state = check_shift(statevalues[$-1].state, token);
if ((shift_state != 0xFFFFFFFFu) && (token == TOKEN_0EOF))
if ((shift_state != 0xFFFFFFFFu) && (token == TOKEN___EOF))
{
/* Successful parse. */
parse_result = statevalues[$-1].pvalue;