Is there a reason to call Node "ASTNode" in the Ecore metamodel? #122
Replies: 2 comments 7 replies
-
Regarding the metamodel, maybe it should be named StarLasu and not Kolasu, as it is going to be shared across the StarLasu libraries. Regarding ASTNode, I think this is a good point and we should probably change the name in the metamodel or rename the class (perhaps defining a type alias to facilitate the transition). I can think of two factors to consider, both not so strong:
|
Beta Was this translation helpful? Give feedback.
-
Another naming inconsistency that we may want to address is in transpilation traces where we have "target" result but "generated" code. IMHO we should use "generated" for both, or "target" for both. |
Beta Was this translation helpful? Give feedback.
-
As the title says. Given that we're going to finalize the Kolasu v2 (aka *Lasu?) metamodel, and we're thinking about using it as the starting point for other *Lasu implementations, it strikes me as odd that all the classes are named the same as their Kolasu counterpart except for Node which is called ASTNode in the Ecore metamodel. If we use a generator to write a, say, Python implementation of the metamodel, it would contain an ASTNode class instead of a Node class.
Beta Was this translation helpful? Give feedback.
All reactions