Move Lexer::DFA#build_tables to Lexer
This commit is contained in:
1 parent
57a3e9d9f6
commit
6f1ce32775
3 files changed
+30
-30
No files matched your search
+1
-1
@@ -123,7 +123,7 @@ class <%= classname %>
|
||||
uint accepts;
|
||||
}
|
||||
|
||||
<% transition_table, state_table = lexer.dfa.build_tables %>
|
||||
<% transition_table, state_table = lexer.build_tables %>
|
||||
private static const Transition transitions[] = [
|
||||
<% transition_table.each do |transition_table_entry| %>
|
||||
Transition(<%= transition_table_entry[:first] %>u, <%= transition_table_entry[:last] %>u, <%= transition_table_entry[:destination] %>u),
|
||||
|
||||
Reference in new issue
Block a user