Remove Token#c_name; use given token case in token constants

This commit is contained in:
josh committed 2022-09-25 14:48:49 -04:00
1 parent 01c9340819
commit 4d716f6c10
3 files changed
+8 -12

No files matched your search

+1 -1
View File
@@ -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 %>,