Add position fields to AST nodes (not populated yet) - #27
This commit is contained in:
1 parent
eae2e17f41
commit
f4ae1b8601
3 files changed
+38
-10
No files matched your search
@@ -89,6 +89,8 @@ struct <%= name %>;
|
||||
<% next if rule_set.optional? %>
|
||||
typedef struct <%= @grammar.ast_prefix %><%= name %><%= @grammar.ast_suffix %>
|
||||
{
|
||||
<%= @grammar.prefix %>position_t position;
|
||||
<%= @grammar.prefix %>position_t end_position;
|
||||
<% rule_set.ast_fields.each do |fields| %>
|
||||
union
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user