Upgrade antlr-kotlin to 1.0.0-RC4

This commit is contained in:
Edwin Jakobs
2024-07-08 11:37:55 +02:00
parent aec57f7a44
commit f6ea07d0be
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ libfreenect = "0.5.7-1.5.9"
librealsense = "2.53.1-1.5.9"
gson = "2.10.1"
antlr = "4.13.1"
antlrKotlin = "0.1.3"
antlrKotlin = "1.0.0-RC4"
tensorflow = "0.5.0"
minim = "2.2.2"
netty = "4.1.109.Final"

View File

@@ -99,7 +99,7 @@ abstract class TypedExpressionListenerBase(
if (s.inFunctionLiteral > 0) {
return
}
val list = (0 until ctx.getExpression().size).map { s.valueStack.pop() }
val list = (0 until ctx.expression().size).map { s.valueStack.pop() }
s.valueStack.push(list.reversed())
}
@@ -127,7 +127,7 @@ abstract class TypedExpressionListenerBase(
override fun exitFunctionLiteral(ctx: KeyLangParser.FunctionLiteralContext) {
val s = state
s.inFunctionLiteral--
val functionExpr = ctx.getExpression().text
val functionExpr = ctx.expression().text
val ids = ctx.ID()
val f = when (ids.size) {