Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369123 - [editor] Use the LPG Lexer and eliminate backtracking
Summary: [editor] Use the LPG Lexer and eliminate backtracking
Status: NEW
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 12:47 EST by Ed Willink CLA
Modified: 2012-02-16 02:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2012-01-19 12:47:04 EST
The current Xtext parsers use ANTLR generated lexers and parsers and require backtracking, at least to resolve "..".

If the old LPG lexer is used this need for backtracking could be eliminated, and a step towards an Xtext-driven LPG parse made as well.

Perhaps the better LPG lexer might also solve the recent appearance of a bug whereby only some of the editors now support <T> as a synonym for (T).
Comment 1 Ed Willink CLA 2012-02-16 02:18:35 EST
(In reply to comment #0)
> Perhaps the better LPG lexer might also solve the recent appearance of a bug
> whereby only some of the editors now support <T> as a synonym for (T).

This is because the Complete OCL grammar overrides without <>.