[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.tmf] Re: Removing left recursion...

I'm very interested in this problem, cause I think I'll face the problem myself in some while.

Think this sample below should help you on your way!
________________________
LogicExpression :
TerminalBinaryExpression ({Operation.left=current} op=LogicBinOperator)?;


TerminalBinaryExpression returns LogicExpression:
	  '(' LogicExpression ')'
	| atom=ID
	| "TRUE"
	| "FALSE"
	;

LogicBinOperator: '&'
| '#'
| '->' | '<->'
| '<-'
| '#!';



Regards, Tim