Add position fields to AST nodes (not populated yet) - #27

This commit is contained in:
josh committed 2024-07-19 14:34:50 -04:00
1 parent eae2e17f41
commit f4ae1b8601
3 files changed
+38 -10

No files matched your search

+2
View File
@@ -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
{