Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [xText]left-recursive
[xText]left-recursive [message #606595] Sat, 18 August 2007 08:07
Irina is currently offline Irina
Messages: 27
Registered: July 2009
Junior Member
Hi all,
can anybody help me please?
how can i define left-recursive rule in xText?

Stm ->
Stm "::" Stm
| Stm "||" Stm
| Stm ";" Stm
| "if" "(" Expr ")" Stm ["else" Stm]
| "{" Stm "}"
| "assert" "(" Expr ")" ";"
| Id["[" Expr "]"] "=" Expr ";"
| [^] ["this" "."] Id "(" [Expr {"," Expr}] ")" ";"
| [^] Id["[" Expr "]"] "." Id "(" [Expr {"," Expr}] ")" ";"
| ";"

Thanks in advance,
Irina
Previous Topic:applying mofscript to XML model
Next Topic:[MOFScript]
Goto Forum:
  


Current Time: Sun Apr 20 15:53:02 EDT 2014

Powered by FUDForum. Page generated in 0.01664 seconds