Bug 335775 - Produce Error for duplicate token in terminal definition
Summary: Produce Error for duplicate token in terminal definition
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-29 13:40 EST by Henrik Lindberg CLA
Modified: 2011-01-29 13:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Lindberg CLA 2011-01-29 13:40:14 EST
When there is a duplicate token in a terminal, there is no error in the .xtext editor, but when generating the grammar, an error is produced with a reference to the InternalMyLexer.g - "duplicate token type '-' when collapsing subrule into set".

terminal NAME :
	'::'? (('0'..'9')|('a'..'z')|('A'..'Z')|'_' | '-' | '-' | '.')+ 
	('::' (('0'..'9')|('a'..'z')|('A'..'Z')|'_' | '-' | '-' | '.')+)*
	;