Mercurial > octave
diff libinterp/parse-tree/pt-binop.h @ 23424:872f42fb26dc
let walker visit tree_boolean and tree_compound_binary expressions directly
* pt-walk.cc: New file.
* module.mk: Update
* pt-walk.h, pt-walk.cc (tree_walker::visit_boolean_expression,
tree_walker::visit_compound_binary_expression): New methods.
* pt-binop.h, pt-binop.cc (tree_boolean_expression::accept):
New function.
* pt-cbinop.h, pt-cbinop.cc (tree_compound_binary_expression::accept):
Likewise.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Apr 2017 12:52:32 -0400 |
parents | 092078913d54 |
children | c452180ab672 |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-binop.h Thu Apr 20 12:27:35 2017 -0400 +++ b/libinterp/parse-tree/pt-binop.h Thu Apr 20 12:52:32 2017 -0400 @@ -176,6 +176,8 @@ tree_expression *dup (symbol_table::scope_id scope, symbol_table::context_id context) const; + void accept (tree_walker& tw); + private: // The type of the expression.