Accessing Symbol objects directly in CUP actions?



Hi,

I'm writing a grammar for a programming language I'm developing as
hobby project (probably gonna be open-source), using CUP and JFlex for
parser/scanner generation. With the SymbolFactory functionality of
CUP, I set the scanner grammar up to use ComplexSymbolFactory, which
stores location information in a better format than the standard
Symbol class.

Now my question: how can I access those Symbols in the CUP grammar? I
know you can label right-hand side productions and terminals to access
the values of them in actions, but is can you also access the Symbols
themselves?
.