Remove pvalue from state_info_t if AST mode is active - close #42

This commit is contained in:
Josh Holtrop 2026-07-02 08:14:49 -04:00
parent c28aebddb4
commit 7942a3be97
2 changed files with 6 additions and 6 deletions

View File

@ -707,12 +707,12 @@ typedef struct
/** Parser state ID. */
size_t state_id;
/** Parser value from this state. */
<%= @grammar.prefix %>value_t pvalue;
<% if @grammar.tree %>
/** tree node. */
void * tree_node;
<% else %>
/** Parser value from this state. */
<%= @grammar.prefix %>value_t pvalue;
<% end %>
} state_value_t;

View File

@ -882,12 +882,12 @@ private struct state_value_t
/** Parser state ID. */
size_t state_id;
/** Parser value from this state. */
<%= @grammar.prefix %>value_t pvalue;
<% if @grammar.tree %>
/** Tree node. */
void * tree_node;
<% else %>
/** Parser value from this state. */
<%= @grammar.prefix %>value_t pvalue;
<% end %>
this(size_t state_id)