From 10c2b7f9b6676dafd62d0eeda507b5ee5c6db216 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 20 Feb 2020 23:26:57 +0100 Subject: Grammar applied to lex (WIP) --- grammer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'grammer.h') 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 + -- cgit v1.2.3