From: Tadayoshi Funaba Date: 1998-04-21T02:50:55+09:00 Subject: [ruby-dev:2450] Re: experimental release 1.1b9_11 ふなばです。 あと、parse_qstring() の仮引数の宣言はあったほうがいいかも。その他、参 考まで。 --- parse.y.orig2 Tue Apr 21 02:36:26 1998 +++ parse.y Tue Apr 21 02:36:55 1998 @@ -192,3 +192,3 @@ %token tEQQ /* === */ -%token tNEQ /* != <> */ +%token tNEQ /* != */ %token tGEQ /* >= */ @@ -344,3 +344,3 @@ } - | klBEGIN + | klBEGIN { @@ -400,3 +400,3 @@ } - | '!' command_call + | '!' command_call { @@ -1026,3 +1026,3 @@ else { - if ($3) $2 = NEW_RESCUE($2, $3); + if ($3) $2 = NEW_RESCUE($2, $3); if ($4) $2 = NEW_ENSURE($2, $4); @@ -1170,3 +1170,3 @@ } - | '|' /* none */ '|' + | '|' /* none */ '|' { @@ -1196,3 +1196,3 @@ -iter_block : '{' +iter_block : '{' { @@ -1271,3 +1271,3 @@ compstmt - rescue + rescue { @@ -1310,3 +1310,3 @@ | kSELF {$$ = kSELF;} - | kTRUE {$$ = kTRUE;} + | kTRUE {$$ = kTRUE;} | kFALSE {$$ = kFALSE;} @@ -2046,3 +2046,3 @@ parse_qstring(term, paren) - int term; + int term, paren; { @@ -2055,3 +2055,3 @@ while ((c = nextc()) != term || nest > 0) { - if (c == -1) { + if (c == -1) { sourceline = strstart; @@ -2211,3 +2211,3 @@ if (list) return tDSTRING; - yylval.val = str; + yylval.val = str; return tSTRING; @@ -3108,3 +3108,3 @@ - case '@': + case '@': tokadd(c); @@ -3295,3 +3295,3 @@ } - + last->nd_next = NEW_LIST(tail); @@ -3500,3 +3500,3 @@ value_expr(val); - + id &= ~ID_SCOPE_MASK; @@ -3995,3 +3995,2 @@ break; - /* fall through */ default: @@ -4012,3 +4011,3 @@ } - + last = strlen(name)-1; @@ -4074,3 +4073,3 @@ char *res; - ID id2; + ID id2; --Tadayoshi Funaba