summaryrefslogtreecommitdiffhomepage
path: root/grammer.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-06 18:20:34 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-06 18:20:34 +0100
commit71c7fd62f8b5257b82cf32b0f747fcf313fcc617 (patch)
tree6f014b14d08080459a04a965912c62605d9015ca /grammer.h
parent62aafc5c9273cb0b7a91bf2e4dee1ac2d3658bb3 (diff)
Prepare Token/Node handling
Diffstat (limited to 'grammer.h')
-rw-r--r--grammer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammer.h b/grammer.h
index e179a9e..90f9e87 100644
--- a/grammer.h
+++ b/grammer.h
@@ -97,8 +97,8 @@ public:
};
bool ChildIdIsEmpty(int32_t child_id);
-bool ChildIdIsToken(int32_t child_id);
-bool ChildIdIsNode(int32_t child_id);
+bool ChildIdIsToken(int32_t child_id); // negative values
+bool ChildIdIsNode(int32_t child_id); // identity
index_t TokenIdFromChildId(int32_t child_id);
int32_t ChildIdFromTokenId(index_t token_id);