daniellansun / groovy-parser

Yet another new parser for Groovy programming language(project code: Parrot)
Apache License 2.0
97 stars 11 forks source link

standalone use of parser #37

Closed tbugfinder closed 6 years ago

tbugfinder commented 6 years ago

How do I execute the parser to validate groovy files? How to run this parser using antlr4 ?

daniellansun commented 6 years ago

FYI

new org.apache.groovy.parser.Antlr4Parser().parse(someGroovyFile)
tbugfinder commented 6 years ago

thx,

input = new File('someGroovyFileName')
new org.apache.groovy.parser.Antlr4Parser().parse(input)