qwertie / LoycCore

The Loyc Core Libraries. Loyc.Essentials fills in gaps in the .NET Base Class Library; Loyc.Collections adds sophisticated data structures; and Loyc.Syntax contains the LES parser and other parsing-related services including base classes for LLLPG.
Other
44 stars 10 forks source link

visitor pattern #6

Closed furesoft closed 5 years ago

furesoft commented 5 years ago

how xan i implement the visitor pattern on your loyc tree?

qwertie commented 5 years ago

Make a class derived from LNodeVisitor and then call n.Call(visitor) on an instance of that class, where n is an LNode.