From: matz@... (Yukihiro Matsumoto) Date: 2000-07-29T01:30:03+09:00 Subject: [ruby-talk:04255] Re: RTFM and/or parser question Hi, In message "[ruby-talk:04250] RTFM and/or parser question" on 00/07/28, "Sergey Abel" writes: |Excuse me, but I'm not satisfied with the following |example and its explanation in the ruby FAQ: |p(nil or "") # parse error |p( (nil or "") ) # parse ok | |Maybe, there's something wrong with the parser? |If not, then we definitely need the more strict syntax definition. No, parser works fine. It's precedence matter. `or' operator is classified as a statement which cannot appear as an argument which should be an expression. A statement surrounded by parenthesises is an expression. Thus the latter is legal. yacc.html in the reference explain this, in kind of obfuscating notation. FAQ description may be inexact. Suggestion is welcome. matz.