antlr-kotlin icon indicating copy to clipboard operation
antlr-kotlin copied to clipboard

Support for Kotlin as a target for ANTLR

Results 45 antlr-kotlin issues
Sort by recently updated
recently updated
newest added

It seems that antlr-kotlin does not properly handle precedence in left-recursive rules. Consider for instance the expression rule in the MiniCalc example: ``` expression : left=expression operator=(DIVISION|ASTERISK) right=expression # binaryOperation...

Maybe it is easier than it seems at first sight? :)

question

## Context I'm using `antlr-kotlin` on a KMM project, targeting android and ios containers. ## Problem The dependency on antlr-kotlin-runtime can no longer be resolved with an iOS target when...

Hey, it would be great if antlr-kotlin would support Antlr 4.9.2 to solve issues like [Maximum call stack size exceeded](https://stackoverflow.com/questions/66031981/using-javascript-grammar-in-antlr4-and-get-maximum-call-stack-size-exceeded-erro). Thanks in advance

In Kotlin.stg... Could you have a look if it would be possible to remove this cast _localctx as (it gives me a lot of uneeded cast warning in intellij idea)...

Hello, As a workaround to the `val`/`var`issue, I created a simple class that is used instead primitive types in the grammar actions : ``` open class AssignableExpression { var value...

I'm new to antlr, so perhaps I'm doing something wrong. I'm trying to write a grammar for a language with string interpolation like kotlin by starting from the `MiniCalc` example....

When using Kotlin explicit API mode the generated source doesn't add the required accessibility modifiers

Hi, while generating the lexer and parser for Kotlin ([see here for .g4 files](https://kotlinlang.org/docs/reference/grammar.html#grammar-source-files)), at the end of the generated KotlinLexer.kt, this code was generated: ```java fun action(RuleContext _localctx, int...