From: Ripta Pasay Date: 2008-02-11T05:26:27+09:00 Subject: Re: where's a complete list of assignment shortcuts? += &= %= etc. Why do you need a *list* of the operators? For that, a quick grep returns this in lib/irb/ruby-lex.rb of your ruby distro: 472: @OP.def_rules("+=", "-=", "*=", "**=", 473: "&=", "|=", "^=", "<<=", ">>=", "||=", "&&=") do If you're actually looking for it in parse.y, I don't think it would appear as those operators. For instance: 6428: case '+': .... 6438: if (c == '=') { 6439: set_yylval_id('+'); 6440: lex_state = EXPR_BEG; 6441: return tOP_ASGN; 6442: } Cheers, -Ripta On Sun, 10 Feb 2008 21:17:36 +0900, Phlip wrote: > Ruby Core: > > Google only returns incidental hits for this topic (including the elusive > table > of "Abbreviated assignment pseudo-operators"!). And I shouldn't just guess > by > reading parse.y (right?;) > > -- > Phlip