Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346641 - Better support for real literals
Summary: Better support for real literals
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Antonio Garcia-Dominguez CLA
QA Contact:
URL:
Whiteboard: interim
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 07:14 EDT by Antonio Garcia-Dominguez CLA
Modified: 2012-02-06 10:59 EST (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 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