diff options
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(); +} + |