diff options
Diffstat (limited to 'src/parser.cpp')
-rw-r--r-- | src/parser.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 3ce73b6..4ad4ff9 100644 --- a/src/parser.cpp +++ b/src/parser.cpp | |||
@@ -205,6 +205,11 @@ int Bu::Parser::getNonTerminalId( const Bu::FString &sName ) | |||
205 | return hNonTerminalName.get( sName ); | 205 | return hNonTerminalName.get( sName ); |
206 | } | 206 | } |
207 | 207 | ||
208 | bool Bu::Parser::hasNonTerminal( const Bu::FString &sName ) | ||
209 | { | ||
210 | return hNonTerminalName.has( sName ); | ||
211 | } | ||
212 | |||
208 | int Bu::Parser::addReduction( const Bu::FString &sName, const Reduction &r ) | 213 | int Bu::Parser::addReduction( const Bu::FString &sName, const Reduction &r ) |
209 | { | 214 | { |
210 | int iId = aReduction.getSize(); | 215 | int iId = aReduction.getSize(); |
@@ -231,6 +236,11 @@ int Bu::Parser::getReductionId( const Bu::FString &sName ) | |||
231 | return hReductionName.get( sName ); | 236 | return hReductionName.get( sName ); |
232 | } | 237 | } |
233 | 238 | ||
239 | bool Bu::Parser::hasReduction( const Bu::FString &sName ) | ||
240 | { | ||
241 | return hReductionName.has( sName ); | ||
242 | } | ||
243 | |||
234 | // | 244 | // |
235 | // Bu::Parser::State | 245 | // Bu::Parser::State |
236 | // | 246 | // |