Removed default tag value from enable_ast.

pull/3/head
yhirose 9 years ago
parent e56062715a
commit a783e0addd
  1. 7
      peglib.h

@ -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;

Loading…
Cancel
Save