dcsimg
modify the execution order for the actions
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Andre_Caplain
Posted On:   Wednesday, October 17, 2001 10:38 AM

Hello

i made a grammar and i need to execute the actions
in a different order of the grammar

for example :

A : B C ;

B : ""first token"" {action to made in second}

C : ""second token"" {action to made first}


i need to make action assiosiate to C before action
to B

but i can't put C before B in my grammar



can you help me ?

Re: modify the execution order for the actions

Posted By:   Ric_Klaren  
Posted On:   Tuesday, October 23, 2001 02:02 AM

Well that makes it more difficult..
Maybe built in the actions two functor objects
pass them up to the calling rule and execute
them there in the desired order?

Re: modify the execution order for the actions

Posted By:   Ric_Klaren  
Posted On:   Monday, October 22, 2001 01:59 AM

Is it an option to put both actions in
the A rule in the right order?


A: B C { 1st action; 2nd action }
B: ""1st token"";
C: ""2nd token"";
About | Sitemap | Contact