Bug #1457 ยป y_semis.patch
| parse.y (working copy) | ||
|---|---|---|
|
if (RTEST(ruby_verbose)) token_info_push(parser, "begin");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_if : keyword_if
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_push(parser, "if");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_unless : keyword_unless
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_push(parser, "unless");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_while : keyword_while
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_push(parser, "while");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_until : keyword_until
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_push(parser, "until");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_case : keyword_case
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_push(parser, "case");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_for : keyword_for
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_push(parser, "for");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_class : keyword_class
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_push(parser, "class");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_module : keyword_module
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_push(parser, "module");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_def : keyword_def
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_push(parser, "def");
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
k_end : keyword_end
|
||
|
{
|
||
| ... | ... | |
|
if (RTEST(ruby_verbose)) token_info_pop(parser, "end"); /* POP */
|
||
|
#endif
|
||
|
}
|
||
|
;
|
||
|
then : term
|
||
|
/*%c%*/
|
||