Removed default tag value from enable_ast.

This commit is contained in:
yhirose 2015-06-04 13:24:22 -04:00
parent e56062715a
commit a783e0addd

View File

@ -2031,7 +2031,7 @@ public:
bool optimize; bool optimize;
}; };
peg& enable_ast(std::initializer_list<AstNodeInfo> list = {}, int tag = -1) { peg& enable_ast(std::initializer_list<AstNodeInfo> list, int tag) {
for (const auto& info: list) { for (const auto& info: list) {
ast_node(info); ast_node(info);
} }
@ -2039,6 +2039,11 @@ public:
return *this; return *this;
} }
peg& enable_ast() {
ast_end(-1);
return *this;
}
MatchAction match_action; MatchAction match_action;
Log log; Log log;