diff options
Diffstat (limited to 'grammer.h')
-rw-r--r-- | grammer.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,8 +22,8 @@ struct NodePosition { // token_id: index into token list // node_id: index into tree node list struct TreeNode { - NodePosition pos; // position of this node in tree - index_t node_id{}; + NodePosition pos; // position of this node in tree (i.e. parent node_id + child_pos in parent) + index_t node_id{}; // this node's id std::string type; index_t variant; // bnf[type][variant] |