lib/rley/parse_forest_visitor.rb in rley-0.4.06 vs lib/rley/parse_forest_visitor.rb in rley-0.4.07

- old
+ new

@@ -38,18 +38,16 @@ # The signal to begin the visit of the parse forest. def start() pforest.accept(self) end - # Visit event. The visitor is about to visit the pforest. # @param aParseForest [ParseForest] the pforest to visit. def start_visit_pforest(aParseForest) broadcast(:before_pforest, aParseForest) end - # Visit event. The visitor is about to visit the given non terminal node. # @param aNonTerminalNode [NonTerminalNode] the node to visit. def visit_nonterminal(aNonTerminalNode) if @traversal == :post_order broadcast(:before_non_terminal, aNonTerminalNode) @@ -66,10 +64,9 @@ # @param aTerminalNode [TerminalNode] the terminal to visit. def visit_terminal(aTerminalNode) broadcast(:before_terminal, aTerminalNode) broadcast(:after_terminal, aTerminalNode) end - # Visit event. The visitor has completed its visit of the given # non-terminal node. # @param aNonTerminalNode [NonTerminalNode] the node to visit. def end_visit_nonterminal(aNonTerminalNode)