Add token_node and token_user_fields grammar statements

This commit is contained in:
josh committed 2026-02-14 21:00:53 -05:00
1 parent 78adf86103
commit 9f2fe6f84b
6 files changed
+45 -14

No files matched your search

+2 -1
View File
@@ -80,6 +80,7 @@ typedef struct <%= @grammar.tree_prefix %>Token<%= @grammar.tree_suffix %>
<%= @grammar.prefix %>position_t end_position;
uint16_t n_fields;
uint8_t is_token;
<%= @grammar.token_user_fields %>
<%= @grammar.prefix %>token_t token;
<%= @grammar.prefix %>value_t pvalue;
} <%= @grammar.tree_prefix %>Token<%= @grammar.tree_suffix %>;
@@ -173,7 +174,7 @@ typedef struct
/** User terminate code. */
size_t user_terminate_code;
<%= @grammar.context_user_code %>
<%= @grammar.context_user_fields %>
} <%= @grammar.prefix %>context_t;
/**************************************************************************