Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321618

Summary: [Serializer] Support serializing of optional keywords
Product: [Modeling] TMF Reporter: Christian Schneider <christian.schneider>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: moritz.eysholdt
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 333976    
Bug Blocks:    

Description Christian Schneider CLA 2010-08-03 11:32:47 EDT
Build Identifier: 1.0.0.v201006170321

Dear Xtextlers!

Please provide the opportunity to dump out optional keywords, for instance by means of something similar to 'UnassignedTextToken' like a 'UnassignedKeywordToken'.

Rational:

Consider the grammar fragment

State returns synccharts::State:
  (type=StateType)? ('state')? (id=ID)? (label=EString)
  (outgoingTransitions+=Transition ("," outgoingTransitions+=Transition)* )? ';'

and the instance

state A;
state B --> A;

For simplification purposes we want to allow

A;
B --> A;

, as well, but want to serialize the above (canonical) form.

Reproducible: Always
Comment 1 Moritz Eysholdt CLA 2011-01-11 09:47:29 EST
bug 333976 fixes this.
Comment 2 Moritz Eysholdt CLA 2011-10-18 03:51:01 EDT
The new serializer has a hook for this. You'll find it in <MyLanguage>SyntacticSequencer when you have the SerializerFragment included in your MEW2-Workflow.
Comment 3 Christian Schneider CLA 2011-10-18 04:03:35 EDT
(In reply to comment #2)
> The new serializer has a hook for this. You'll find it in
> <MyLanguage>SyntacticSequencer when you have the SerializerFragment included in
> your MEW2-Workflow.

Thanks for this hint,
will have a look on it some time.
Comment 4 Karsten Thoms CLA 2017-09-19 16:53:13 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:04:08 EDT
Closing all bugs that were set to RESOLVED before Neon.0