Hi all,
I’ve been poking around Ripper for the last couple a days and during
that process I started to look at parse.y as it’s currently in CVS (Ruby
1.9 that is).
I’m not very knowledgeable about yacc and parsers in general but I just
wanted to ask a quick question.
In parse.y I see alot of /%%%/ and /% --code-- %/“constructs” for
example:
primary : literal
| strings
| xstring
| regexp
| words
| qwords
| var_ref
| backref
| tFID
{
/%%%/
$$ = NEW_FCALL($1, 0);
/%
$$ = method_arg(dispatch1(fcall, $1),
arg_new());
%/
}
I’ve started reading the bison manual but I can’t find any reference to
this construct.
My question: Are these lines just comments or are they instructing
bison?
Again, any help is greatly appreciated.
With kind regards,
Jonathan