Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » EclipseCon » Xtext Terminal rule Error
Xtext Terminal rule Error [message #1007101] Mon, 04 February 2013 08:18 Go to next message
junior developer is currently offline junior developer
Messages: 335
Registered: January 2013
Senior Member
My grammar:

Terminal :
(Unclosed += Unclosed)*

terminal UNCLOSED_COMMENT1 returns ecore ::EString : //output: /#ab

'/#'('a'..'c')* EOF;


Unclosed :
'unclose' unclose +=UNCLOSED_COMMENT1
;

Hello I take an error about EOF My language not accepted /#ab error:mismatched character ' ' expecting '<EOF>'
Re: Xtext Terminal rule Error [message #1009888 is a reply to message #1007101] Fri, 15 February 2013 18:39 Go to previous message
Ian McDevitt is currently offline Ian McDevitt
Messages: 62
Registered: December 2012
Location: Belfast
Member
You are missing a semi-colon after the first rule.

Terminal :
(Unclosed += Unclosed)* 

should be
Terminal :
(Unclosed += Unclosed)* 
 ;


An errors after that may be misleading because the xtext parser will be trying to join your rules together.
Previous Topic:When will EclipeCon 2011 presentation will become available for downloading?
Next Topic:Can Not Find Type for Cross Reference
Goto Forum:
  


Current Time: Tue Oct 08 04:23:30 EDT 2013

Powered by FUDForum. Page generated in 0.03725 seconds