summaryrefslogtreecommitdiffhomepage
path: root/bnf.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-03-15 18:19:49 +0100
committerRoland Reichwein <mail@reichwein.it>2020-03-15 18:19:49 +0100
commit9f69b006dde3c3fbe19ed3e0275d3b7348f2aa87 (patch)
tree6ac42793568339463f913cf39474794c8613d0b6 /bnf.h
parent3a7006fcf5f8ecffd852fbba6d8ee03ce8a35dce (diff)
New lexer
Diffstat (limited to 'bnf.h')
-rw-r--r--bnf.h2
1 files changed, 2 insertions, 0 deletions
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<std::string, std::set<std::string>> Reverse(BNF bnf); // unus
std::unordered_map<std::string, std::set<std::string>> reverseFirst(BNF bnf);
BNF SubBNF(const BNF& bnf, const std::string& top);
+
+bool isTerminal(const BNF& bnf, const std::string& symbol);