Fix tree struct type forward-declarations for C/C++

This commit is contained in:
josh committed 2026-07-14 22:11:39 -04:00
1 parent 52fb46abfa
commit c3bccd2151
1 file changed
+1 -1
+1 -1
View File
@@ -104,7 +104,7 @@ typedef struct <%= @grammar.tree_prefix %>Token<%= @grammar.tree_suffix %>
<% @parser.rule_sets.each do |name, rule_set| %>
<% next if name.start_with?("$") %>
<% next if rule_set.optional? %>
struct <%= name %>;
struct <%= @grammar.tree_prefix %><%= name %><%= @grammar.tree_suffix %>;
<% end %>
<% @parser.rule_sets.each do |name, rule_set| %>