mirror of
https://github.com/irmen/prog8.git
synced 2024-06-29 11:29:29 +00:00
22 lines
310 B
Groovy
22 lines
310 B
Groovy
|
plugins {
|
||
|
id 'antlr'
|
||
|
id 'java'
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
antlr 'org.antlr:antlr4:4.7.2'
|
||
|
}
|
||
|
|
||
|
compileJava {
|
||
|
dependsOn tasks.withType(AntlrTask)
|
||
|
}
|
||
|
|
||
|
generateGrammarSource {
|
||
|
outputDirectory = file("src/prog8/parser")
|
||
|
arguments += ["-no-listener","-no-visitor"]
|
||
|
}
|