From 7edbd99775416a32c88acf8e9379518436905f02 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 21 Nov 2020 15:19:45 +0100 Subject: Support gcc 10 and clang 11 --- grammer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'grammer.h') diff --git a/grammer.h b/grammer.h index 90f9e87..5c80d57 100644 --- a/grammer.h +++ b/grammer.h @@ -102,5 +102,9 @@ bool ChildIdIsNode(int32_t child_id); // identity index_t TokenIdFromChildId(int32_t child_id); int32_t ChildIdFromTokenId(index_t token_id); +// only convenience functions +index_t NodeIdFromChildId(int32_t child_id); +int32_t ChildIdFromNodeId(index_t node_id); + } // namespace Gram -- cgit v1.2.3