Add TokenNames array
This commit is contained in:
parent
4beb3d2016
commit
15454f926a
@ -13,6 +13,16 @@ class <%= classname %>
|
|||||||
<% end %>
|
<% end %>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static immutable string TokenNames[] = [
|
||||||
|
<% @grammar.tokens.each_with_index do |token, index| %>
|
||||||
|
<% if token.name %>
|
||||||
|
"<%= token.name %>",
|
||||||
|
<% else %>
|
||||||
|
null,
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
];
|
||||||
|
|
||||||
private struct Transition
|
private struct Transition
|
||||||
{
|
{
|
||||||
uint first;
|
uint first;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user