Add token_node and token_user_fields grammar statements
This commit is contained in:
1 parent
78adf86103
commit
9f2fe6f84b
6 files changed
+45
-14
No files matched your search
@@ -694,6 +694,7 @@ typedef struct
|
||||
<% end %>
|
||||
} state_value_t;
|
||||
|
||||
<% if @grammar.tree %>
|
||||
/** Common tree node structure. */
|
||||
typedef struct TreeNode_s
|
||||
{
|
||||
@@ -703,6 +704,7 @@ typedef struct TreeNode_s
|
||||
uint8_t is_token;
|
||||
struct TreeNode_s * fields[];
|
||||
} TreeNode;
|
||||
<% end %>
|
||||
|
||||
/** Parser shift table. */
|
||||
static const shift_t parser_shift_table[] = {
|
||||
|
||||
Reference in new issue
Block a user