Rename lexer state "accepts" to "token"
This commit is contained in:
1 parent
4d716f6c10
commit
48704295bb
2 files changed
+6
-6
No files matched your search
@@ -14,7 +14,7 @@ class Propane
|
||||
state_table = []
|
||||
states = @dfa.enumerate
|
||||
states.each do |state, id|
|
||||
accepts =
|
||||
token =
|
||||
if state.accepts.nil?
|
||||
TOKEN_NONE
|
||||
elsif state.accepts.drop?
|
||||
@@ -31,7 +31,7 @@ class Propane
|
||||
state_table << {
|
||||
transition_table_index: transition_table.size,
|
||||
n_transitions: state.transitions.size,
|
||||
accepts: accepts,
|
||||
token: token,
|
||||
code_id: code_id,
|
||||
}
|
||||
state.transitions.each do |transition|
|
||||
|
||||
Reference in new issue
Block a user