Closed GoogleCodeExporter closed 9 years ago
I think it's better to rename Visitor to SymbolVisitor
Original comment by lemontree.cool
on 2 Oct 2008 at 8:55
SymbolVisitor should have two methods: visitTerminal() and visitNonTerminal().
And
for RegexVisitor, the visitNonTerminal() will first call accept() on its
children and
then on itself. Basically it's a post-order traversal.
NOTE: It's better to put the traversal algorithm in the Visitor implementations.
Since such algorithm may vary according to the operation.
Original comment by lemontree.cool
on 2 Oct 2008 at 9:01
Original comment by lemontree.cool
on 21 May 2009 at 3:12
Original comment by lemontree.cool
on 18 Jul 2009 at 11:46
Original issue reported on code.google.com by
lemontree.cool
on 2 Oct 2008 at 8:49