I have a couple of questions with respect to generating Java from my language using the generator.
Here is how my language looks:
This is how my language directory looks:
And my root mapping rule looks like so:
And now I get some errors in my generated text. I am attaching a screenshot of one of steps in which I get some erroneous generated text.
Clearly there are problems. I have the following questions:
1. Although I have 4 persons in my Workflow (1 in each WorkflowStep)-> Customer, Chef, Waiter and Customer.... the Customer refers to a single instance. When I use a LOOP macro to generate instance variables, 4 of them are created with 2 for Customer which is right according to the LOOP semantics. How can I generate only 1 variable for Customer?
2. The same problem occurs with the nested classes. Ideally I should have 1 Customer class generated with place_order() and pay_bill() methods inside it.
3. I created a WorkFlowStatus enum (BaseLang enum concept) in the generator model to map the WorkFlowStatus concept in my RWMS language but in the generated code, I get a unresolved reference problem. How may I fix this?
They look like so:
Sorry for the extremely wrong question. I thought it would be helpful to provide context.