Specific cross-reference [message #1385871] |
Wed, 11 June 2014 16:29  |
Eclipse User |
|
|
|
Hi,
I am creating an DSL language.
I would like to do domething like this :
welcome 2 :
consequences 2.1 : doSomething
2.2 : doOtherThing
I would like to have a reference between the number 2 from welcome and the number 2 from consequences.
Your help will be welcome.
best regards,
Felix
|
|
|
|
|
|
|
Re: Specific cross-reference [message #1386023 is a reply to message #1385889] |
Fri, 13 June 2014 00:00   |
Eclipse User |
|
|
|
Thank you very much for your advise.
I will need your help for something else. Actually, I don't know how to start.
I have create this grammar:
/*** Alternatives ****/
Alternative 1:
for {e1, e2, e3} select :
R1 or R2 or R3;
Alternative 2:
for {e6, e7, e8} select :
R6 or R7 or R8;
/*** Decision appears when the user make a choice from [b][i]alternative i[/i][/b], [b][i]alternative i[/i][/b] will be automatically delete from the file ****/
Decision 1 select R7 for {e6, e7, e8} :
consequences : decision 1.0 select R2 for {e1, e2, e3} and exclude R7 for {e6,e7,e8}
/*** Tell if the rule has to be excluded or Apply when the decision is validate. Automatically, Decision will be delete from the file ****/
Exclude rule R10 for {e9};
Apply rule R12 for {e10,e11};
What I want to do is this :
1 - I have a file which contains only some Alternatives.
2 - An user has a possibility to make a choise from an Alternative
3 - Decision appears when the user make a choice from Alternative i, Alternative i will be automatically delete from the file
4 - Tell if the rule has to be exclude or Apply when the Decision is validate. Automatically, the Decision will be delete from the file
The problem is that, I don't know howI can do that.
Thank you in advance for your help.
[Updated on: Fri, 13 June 2014 06:42] by Moderator
|
|
|
|
|
|
|
|
|
Re: Specific cross-reference [message #1386166 is a reply to message #1386165] |
Fri, 13 June 2014 17:32  |
Eclipse User |
|
|
|
Hi I forget something,
I do not want to edit the file by typing, I will just need to select a few elements (maximum 2) from a specific list.
I want XText to add automatically the text corresponding of the selection I made because.
Axample:
If I select alternative 1 , remove the line in the file corresponding of that and add a line for the decision.
|
|
|
Powered by
FUDForum. Page generated in 0.05534 seconds