[LLVMdev] Oddity in StackerParser.y.
Ralph Corderoy
ralph at inputplus.co.uk
Fri Apr 21 03:04:09 PDT 2006
Hi Jeff,
> Ralph Corderoy wrote:
> > /* A module is just a DefinitionList */
> > Module : { SCI->handle_module_start( ); }
> > DefinitionList { $$ = SCI->handle_module_end( $2 ); } ;
>
> No, $2 is correct. The { } code block before DefinitionList is
> counted (or more precisely, the empty sequence of terminals preceding
> it is counted).
Ah, thanks. I found it in the Bison manual too:
http://www.gnu.org/software/bison/manual/html_mono/bison.html.gz#Mid_002dRule-Actions
Cheers,
Ralph.
More information about the llvm-dev
mailing list