Here are some tips on how to debug what is happening on the transition from groovy source code into the generated bytecode.
artifact | transformation | artifact |
|---|---|---|
| source (Foo.groovy) | GroovyLexer | antlr tokens |
| antlr tokens | GroovyRecognizer | antlr ast |
| antlr ast | AntlrParserPlugin | groovy ast |
| groovy ast | ??? | bytecode (Foo.class) |
1.1 Example
For these examples let's assume the file 'Hello.groovy' contains
1.1 GroovyLexer
To view the tokens that the source code has been broken into you need to do the following in groovy-core subdirectory
Labels