Accessing Symbol objects directly in CUP actions?
- From: Denis Washington <dwashington@xxxxxxx>
- Date: 19 Jun 2006 09:34:05 -0400
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?
.
- Prev by Date: Re: What is the future of Compiler ?
- Next by Date: Re: What is the future of Compiler technology?
- Previous by thread: Fortran 2003 ALLOCATABLE extensions
- Next by thread: compiler smarts: register variables and catching exceptions
- Index(es):