Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce80e00e60 | ||
|
|
01b45df1f9 |
No files matched your search
@@ -22,8 +22,6 @@ class <%= @classname %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
_TOKEN_COUNT = <%= @grammar.tokens.size %>,
|
||||
_TOKEN_DECODE_ERROR = <%= TOKEN_DECODE_ERROR %>,
|
||||
_TOKEN_DROP = <%= TOKEN_DROP %>,
|
||||
}
|
||||
|
||||
struct Token
|
||||
@@ -408,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;
|
||||
|
||||
@@ -25,12 +25,6 @@ require_relative "propane/version"
|
||||
|
||||
class Propane
|
||||
|
||||
# Decoding error.
|
||||
TOKEN_DECODE_ERROR = 0xFFFFFFFD
|
||||
|
||||
# Token ID for a "dropped" token.
|
||||
TOKEN_DROP = 0xFFFFFFFE
|
||||
|
||||
class Error < RuntimeError
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user