From 9f69b006dde3c3fbe19ed3e0275d3b7348f2aa87 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 15 Mar 2020 18:19:49 +0100 Subject: New lexer --- bnf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bnf.h') diff --git a/bnf.h b/bnf.h index 13337bf..9244b4d 100644 --- a/bnf.h +++ b/bnf.h @@ -15,3 +15,5 @@ std::unordered_map> Reverse(BNF bnf); // unus std::unordered_map> reverseFirst(BNF bnf); BNF SubBNF(const BNF& bnf, const std::string& top); + +bool isTerminal(const BNF& bnf, const std::string& symbol); -- cgit v1.2.3