JetBrains / Grammar-Kit

Grammar files support & parser/PSI generation for IntelliJ IDEA
Other
725 stars 126 forks source link

Uncompilable code in generated parser #32

Closed pjonsson closed 7 years ago

pjonsson commented 10 years ago

I get a compilation error in my parser from the following code:

import ::= var
         | tycon ["(..)" | cnames]
         | tycls ["(..)" | vars]

Renaming "import" to "importt" makes the problem go away. The generated java Parser contains a function called "import".

gregsh commented 7 years ago

Keywords are now transparently escaped like import_$