Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321618 - [Serializer] Support serializing of optional keywords
Summary: [Serializer] Support serializing of optional keywords
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 333976
Blocks:
  Show dependency tree
 
Reported: 2010-08-03 11:32 EDT by Christian Schneider CLA
Modified: 2017-09-19 17:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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