mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-11-13 22:55:29 +00:00
Removed default tag value from enable_ast.
This commit is contained in:
parent
e56062715a
commit
a783e0addd
7
peglib.h
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…
Reference in New Issue
Block a user