Origin and Destination #5
Replies: 2 comments 7 replies
-
These are very valid points. I like CompositeOrigin and CompositeDestination also because they enable us to support new strategies in the future (e.g. save the last n code generation results) without having to modify Node or provide specialized subclasses of Node. I'm unsure about a shared type because some objects only make sense as origins (e.g. a parse tree) and others only make sense as destinations (e.g. generated code). Also, a Node can be at the same time both an origin and a destination. |
Beta Was this translation helpful? Give feedback.
-
Another doubt related to this: The reason would be that the Node per-se contains the information, where the information comes from is defined by the |
Beta Was this translation helpful? Give feedback.
-
I was writing some documentation on this subject (https://github.com/Strumenta/StarLasu/blob/main/documentation/origin_and_destination.md), and I got a few doubts.
Currently, a Node in Kolasu has a destination specified like this:
Beta Was this translation helpful? Give feedback.
All reactions