Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356630 - [documentation] Syntactic Predicate grammar doesn't match example.
Summary: [documentation] Syntactic Predicate grammar doesn't match example.
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-02 14:35 EDT by David Wegener CLA
Modified: 2017-09-19 17:12 EDT (History)
2 users (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Wegener CLA 2011-09-02 14:35:51 EDT
Build Identifier: Xtext Documentation 2.0.1.v201108020636

The Syntactic Predicate section of the XText documentation includes an example of an ambiguous if-else construct.  The documentation then describes a grammar to deal with the ambiguity.  However, the grammar doesn't match the example.  The example shows:
if (conditon)
 if (condition)
  expression
 else expression.
The grammar defines:
'if' expression
'then' expression
(=>'else' expression)? syntax.  Either the example should be changes to include the then keyword of it should be removed from the grammar.

The condition in the example also is surrounded by ().  However, the grammar doesn't define that () are used to denote conditions.



Reproducible: Always

Steps to Reproduce:
Problem is in the documentation.
Comment 1 Jan Koehnlein CLA 2011-10-26 09:49:20 EDT
Fixed in HEAD
Comment 2 Karsten Thoms CLA 2017-09-19 17:00:55 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:12:18 EDT
Closing all bugs that were set to RESOLVED before Neon.0