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