What is minimal sample Gradle project for ANTLR4 (with antlr plugin)?

后端 未结 7 1423
陌清茗
陌清茗 2021-02-14 03:47

I have created new Gradle project, added

apply plugin: \'antlr\'

and

dependencies {
    antlr \"org.antlr:antlr4:4.5.3\"
         


        
7条回答
  •  一整个雨季
    2021-02-14 04:33

    For Issue 2:

    you can configure in the gradle.build:

      generateGrammarSource {
            maxHeapSize = "64m"
            arguments += ["-visitor", 
                          "-long-messages", 
                          "-package", "your.package.name"]
    
    }
    

提交回复
热议问题