Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320621 - [HiddenTerminals] Handling of hidden tokens is not as expected
Summary: [HiddenTerminals] Handling of hidden tokens is not as expected
Status: RESOLVED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext Backlog (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-22 08:50 EDT by Sebastian Zarnekow CLA
Modified: 2016-09-20 08:28 EDT (History)
2 users (show)

See Also:


Attachments
Sample Project (136.88 KB, application/x-zip-compressed)
2016-09-20 08:28 EDT, Karsten Thoms CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2010-07-22 08:50:51 EDT
Grammar
=======

Model:
  elements+=Element;

Element:
  'element' attr += Attribute attr += Attribute? (attr += Attribute attr += Attribute)*;

Attribute:
  value = Datatype;

Datatype hidden(WS, INT):
  ID ('.' ID)*;

Parser fails with valid input:
==============================
element 7 a 8 . b
Comment 1 Sebastian Zarnekow CLA 2010-07-22 08:51:13 EDT
see also bug 317840
Comment 2 Karsten Thoms CLA 2016-09-20 08:28:27 EDT
Created attachment 264283 [details]
Sample Project

Runtime and test project. The following test shows no errors:

	@Test 
	def void loadModel() {
		val result = parseHelper.parse('''
			element 7 a 8 . b
		''')
		Assert.assertNotNull(result)
		assertNoErrors(result)
	}