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;
};
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) {
ast_node(info);
}
@ -2039,6 +2039,11 @@ public:
return *this;
}
peg& enable_ast() {
ast_end(-1);
return *this;
}
MatchAction match_action;
Log log;