Remove Token#c_name; use given token case in token constants
This commit is contained in:
1 parent
01c9340819
commit
4d716f6c10
3 files changed
+8
-12
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ class <%= @classname %>
|
||||
enum
|
||||
{
|
||||
<% @grammar.tokens.each_with_index do |token, index| %>
|
||||
TOKEN_<%= token.c_name %> = <%= index %>,
|
||||
TOKEN_<%= token.name %> = <%= index %>,
|
||||
<% end %>
|
||||
_TOKEN_COUNT = <%= @grammar.tokens.size %>,
|
||||
_TOKEN_EOF = <%= TOKEN_EOF %>,
|
||||
|
||||
Reference in new issue
Block a user