Remove TOKEN_DECODE_ERROR

This commit is contained in:
josh committed 2023-03-17 20:01:55 -04:00
1 parent 01b45df1f9
commit ce80e00e60
2 files changed
-5

No files matched your search

-2
View File
@@ -22,7 +22,6 @@ class <%= @classname %>
<% end %>
<% end %>
_TOKEN_COUNT = <%= @grammar.tokens.size %>,
_TOKEN_DECODE_ERROR = <%= TOKEN_DECODE_ERROR %>,
}
struct Token
@@ -407,7 +406,6 @@ class <%= @classname %>
if (decoded.is_decode_error())
{
result.type = Result.Type.DECODE_ERROR;
result.token = _TOKEN_DECODE_ERROR;
return;
}
bool lex_continue = false;
-3
View File
@@ -25,9 +25,6 @@ require_relative "propane/version"
class Propane
# Decoding error.
TOKEN_DECODE_ERROR = 0xFFFFFFFD
class Error < RuntimeError
end