|
|
|
|
|
Re: problem in Grammar [message #520420 is a reply to message #520250] |
Fri, 12 March 2010 10:41 |
farah Mising name Messages: 58 Registered: July 2009 |
Member |
|
|
thank you for your help
for the left recursivty I resourced on the xtext documentation
and this is the code
Quote: |
ProcessExpression : TerminalProcessExpression ( {binary.left=current} binaryOp=choice right=ProcessExpression)?;
TerminalProcessExpression returns ProcessExpression: Prefix |Process |Parenthese | ProcessExpression ;
enum choice: EC = '[]' |IC = '|~|' ;
|
in EBNF I Write
Quote: |
ProcessExpression : Prefix |Process |Parenthese | ExternalChoice | InternalChoice ;
ExternalChoice: left=ProcessExpression "[]" right=ProcessExpression;
InternalChoice: left=ProcessExpression "|~|" right=ProcessExpression;
|
This grammar is that of Wright ADL
with my best rgards
Farah
[Updated on: Fri, 12 March 2010 10:45] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04101 seconds