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

Bug 346641

Summary: Better support for real literals
Product: [Modeling] Epsilon Reporter: Antonio Garcia-Dominguez <agarcdomi>
Component: CoreAssignee: Antonio Garcia-Dominguez <agarcdomi>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: dkolovos
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: interim

Description Antonio Garcia-Dominguez CLA 2011-05-20 07:14:02 EDT
As reported by Konrad Schwarz in #333740, EOL does not support exponentes in real literals. I've had a look at the grammar and EOL is rather more restrictive than Java for real numbers.

I think we should support these formats:

- 4.2 (with '.', already accepted)
- 4d or 4f (only with 'd' or 'f', currently we would need to use '4.0d')
- 4e1, 4e+1, 4e-1 (not accepted now)
- 4e1d (not accepted now)
- 4.0e1d (not accepted now)

We should fix this before writing the section on literals mentioned in #333740, so we don't have to go back, fix it and revise the documentation.

I'll work on this now, seeing that we'll have to generate all parsers for the Map literals anyway.
Comment 1 Antonio Garcia-Dominguez CLA 2011-05-20 07:17:12 EDT
I have committed the required code to SVN. While I was fixing this bug, I added UNIX launch configurations to generate the ANTLR parsers for the E*L languages and fixed some minor issues in the EOL and Flock ANTLR launch configurations.

EUnit should also provide more information when finding parsing errors in the EOL test cases.
Comment 2 Dimitris Kolovos CLA 2011-07-25 08:18:11 EDT
Fixed in 0.9.1