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

Bug 369123

Summary: [editor] Use the LPG Lexer and eliminate backtracking
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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 <>.