Entity Lists

- LRParser::addEntity accumulates categorized entities for the parser.
This commit is contained in:
Paul Beckingham 2013-08-30 11:40:38 -07:00
parent 888a77213a
commit 66bcf26aa0
3 changed files with 18 additions and 2 deletions

View file

@ -62,6 +62,12 @@ Tree* LRParser::parse (const std::string& tokens)
return tree;
}
////////////////////////////////////////////////////////////////////////////////
void LRParser::addEntity (const std::string& name, const std::string& value)
{
_entities.insert (std::pair <std::string, std::string> (name, value));
}
////////////////////////////////////////////////////////////////////////////////
// Wraps calls to matchRule, while properly handling the quantifier.
bool LRParser::matchRuleQuant (