From: Ezra Zygmuntowicz Date: 2005-08-05T10:33:35+09:00 Subject: Re: ruby-dev summary 26468-26661 On Aug 4, 2005, at 9:23 AM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: ruby-dev summary 26468-26661" > on Fri, 5 Aug 2005 01:14:46 +0900, Christian Neukirchen > writes: > > |I have no clue about the Bison grammar underlying Ruby, but can't you > |"simply" say that if the first token after { is a |, you need to > parse > |until the next | to get the block parameters? > > It would be great if it's possible. But unfortunately I don't have > enough skills to accomplish this using yacc/bison. > > |Of course, you couldn't write { |x = 5|7 | true } then... *I* can > live > |with that. > > You can always use {|x=(5|7)| true }. > > matz. > > I think this looks the best to me. -Ezra Zygmuntowicz WebMaster Yakima Herald-Republic Newspaper ezra@yakima-herald.com 509-577-7732