Closed peoro closed 4 years ago
Using a custom AST node type is broken in the latest versions.
That's because peg::parser::enable_ast<T> calls peg::add_ast_action (i.e. peg::add_ast_action<peg::Ast>) instead of peg::add_ast_action<T>, in peglib.h:3940.
peg::parser::enable_ast<T>
peg::add_ast_action
peg::add_ast_action<peg::Ast>
peg::add_ast_action<T>
@peoro, thanks for catching the bug, and sent a pull request to fix it!
Using a custom AST node type is broken in the latest versions.
That's because
peg::parser::enable_ast<T>
callspeg::add_ast_action
(i.e.peg::add_ast_action<peg::Ast>
) instead ofpeg::add_ast_action<T>
, in peglib.h:3940.