Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Here are some tips on how to debug what is happening on the transition from groovy source code into the generated bytecode.

artifact

transformationartifact
source (Foo.groovy)GroovyLexerantlr tokens
antlr tokensGroovyRecognizerantlr ast
antlr astAntlrParserPlugingroovy ast
groovy ast???bytecode (Foo.class)

h.1 Example

For these examples let's assume the file 'Hello.groovy' contains

h.1 GroovyLexer

To view the antlr tokens that the source code has been broken into you need to do the following in groovy-core subdirectory

h.1 GroovyRecognizer

To view the antlr AST that the recognized tokens have built

  • No labels