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

Bug 356630

Summary: [documentation] Syntactic Predicate grammar doesn't match example.
Product: [Modeling] TMF Reporter: David Wegener <dpwegener>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan, sebastian.zarnekow
Version: 2.0.1Flags: sebastian.zarnekow: indigo+
Target Milestone: SR2   
Hardware: PC   
OS: Linux   
Whiteboard:

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