I'm improving. My nBNF/AST parses entire Go packages with all occuring "main" syntax (although skipping the details of function body content as suggested). I achieve more and more details out of the sources as I learn how to define terms and rules. But, how do I know...
Q1: ... which exact node/attribute names to give the terms as to enable EA to pick them up?
On the following page(s) on AST nodes I get the following hints about recognizable terms. Does that mean that these names are the exact names by which CodeGen templates uses later when it reads info from the model?
http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/context_labels.html (example node names below)
Q2: If these identifiers are not the exact ones used by EA internally, is there any mapping table resolving the names used in CodeGen templates or via script access?
Q3: In conclusion: Can I access these AST nodes - by these exact names - by codegen or scripts once they are picked up by EA import?
// Rolf
This perhaps should be obvious, but...
(
Q4: Does "CLASS/INTERFACE" below mean "in CLASS and/or INTERFACE" or is "CLASS/INTERFACE" an identifier in its own right?)
"Class BODY" Node
Contained in Nodes: CLASS/INTERFACE
------------------------------------
METHOD
ATTRIBUTE
FIELD
CLASS
SCOPE
PROPERTY
TAG
PARENT
OPEN_POSITION
INSERT_POSITION