Work around antlr configuration
This commit is contained in:
@@ -7,17 +7,9 @@ plugins {
|
||||
|
||||
tasks.generateGrammarSource {
|
||||
maxHeapSize = "64m"
|
||||
arguments.addAll(listOf("-visitor", "-long-messages", "-package", "org.openrndr.extra.expressions.antlr"))
|
||||
outputDirectory = file("${project.buildDir}/generated-src/antlr/org/openrndr/extra/expressions/antlr")
|
||||
arguments.addAll(listOf("-visitor", "-long-messages"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDir("build/generated-src/antlr")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
package org.openrndr.extra.expressions
|
||||
|
||||
import KeyLangLexer
|
||||
import KeyLangParser
|
||||
import KeyLangParserBaseListener
|
||||
import org.antlr.v4.runtime.*
|
||||
import org.antlr.v4.runtime.tree.ParseTreeWalker
|
||||
import org.antlr.v4.runtime.tree.TerminalNode
|
||||
import org.openrndr.extra.expressions.antlr.KeyLangLexer
|
||||
import org.openrndr.extra.expressions.antlr.KeyLangParser
|
||||
import org.openrndr.extra.expressions.antlr.KeyLangParserBaseListener
|
||||
|
||||
import org.openrndr.extra.noise.uniform
|
||||
import org.openrndr.math.*
|
||||
import java.util.*
|
||||
|
||||
Reference in New Issue
Block a user