diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-03-15 18:19:49 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-03-15 18:19:49 +0100 |
commit | 9f69b006dde3c3fbe19ed3e0275d3b7348f2aa87 (patch) | |
tree | 6ac42793568339463f913cf39474794c8613d0b6 /bnf.cpp | |
parent | 3a7006fcf5f8ecffd852fbba6d8ee03ce8a35dce (diff) |
New lexer
Diffstat (limited to 'bnf.cpp')
-rw-r--r-- | bnf.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -68,3 +68,8 @@ BNF SubBNF(const BNF& bnf, const std::string& top) return result; } +bool isTerminal(const BNF& bnf, const std::string& symbol) +{ + return bnf.find(symbol) == bnf.end(); +} + |