From: Christian Neukirchen Date: 2005-08-05T05:05:41+09:00 Subject: Re: ruby-dev summary 26468-26661 Yukihiro Matsumoto writes: > 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. Neither do I... > |Of course, you couldn't write { |x = 5|7 | true } then... *I* can live > |with that. > > You can always use {|x=(5|7)| true }. Good point. > matz. -- Christian Neukirchen http://chneukirchen.org