summaryrefslogtreecommitdiffhomepage
path: root/grammer.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-02-20 23:26:57 +0100
committerRoland Reichwein <mail@reichwein.it>2020-02-20 23:26:57 +0100
commit10c2b7f9b6676dafd62d0eeda507b5ee5c6db216 (patch)
tree705885f41d9224e8678578e99db9f80af8136e94 /grammer.h
parentba8520d3435c75c2568c05f1333966a4c1a4d69b (diff)
Grammar applied to lex (WIP)
Diffstat (limited to 'grammer.h')
-rw-r--r--grammer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/grammer.h b/grammer.h
index f6f9d95..bdb2718 100644
--- a/grammer.h
+++ b/grammer.h
@@ -73,4 +73,9 @@ public:
void DumpTree();
};
+bool ChildIdIsToken(int32_t child_id);
+index_t TokenIdFromChildId(int32_t child_id);
+int32_t ChildIdFromTokenId(index_t token_id);
+
} // namespace Gram
+