Rename lexer state "accepts" to "token"

This commit is contained in:
josh committed 2022-09-25 14:57:46 -04:00
1 parent 4d716f6c10
commit 48704295bb
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -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|