Kevin Lano

Results 7 issues of Kevin Lano

There is no grammar for OCL in the grammars-v4 repository. I have written a grammar for OCL and would like to contribute this. It may be viewed at: https://github.com/eclipse/agileuml/blob/master/OCL.g4

new-grammar
ocl

C:\Documents>java org.antlr.v4.gui.TestRig JavaScript singleExpression -tree ``` (singleExpression (arrayLiteral [ elementList ])) ``` The result should be ``` (singleExpression (arrayLiteral [ ])) ``` There is a missing production for the empty...

javascript

Corrected additiveExpression grammar so that x - y + z is correctly parsed.

ocl

This gives an incorrect parse: ``` java org.antlr.v4.gui.TestRig Cobol85 pictureString -tree ``` ``` (pictureString (pictureChars (integerLiteral 9)) (pictureChars () (pictureChars (integerLiteral 18)) (pictureChars ))) ``` Should be ``` (pictureString (pictureChars...

cobol

[cgtlexample1.txt](https://github.com/antlr/grammars-v4/files/11398935/cgtlexample1.txt) [cgtlexample4.txt](https://github.com/antlr/grammars-v4/files/11398936/cgtlexample4.txt) [cgtlexample3.txt](https://github.com/antlr/grammars-v4/files/11398937/cgtlexample3.txt) [cgtlexample2.txt](https://github.com/antlr/grammars-v4/files/11398938/cgtlexample2.txt)

Lexer for CGTL

Parser file for CGTL