A few small improvements to helper functions

This commit is contained in:
Jonathan Turner
2009-05-27 20:01:34 +00:00
parent f6f6a8305e
commit 10491e4ed8
3 changed files with 16 additions and 15 deletions

View File

@@ -94,3 +94,12 @@ Rule Str(const std::string &text, bool keep) {
Rule Id(int id, bool keep) {
return Rule(boost::bind(Type_Rule, _1, _2, _3, id, keep));
}
Rule Str(const std::string &text) {
return Rule(boost::bind(String_Rule, _1, _2, _3, text, false));
}
Rule Id(int id) {
return Rule(boost::bind(Type_Rule, _1, _2, _3, id, false));
}