Skip to content
Prev 35940 / 63424 Next

Problem with ?Syntax

On Sat, Feb 20, 2010 at 9:52 AM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
I think its the parser rule that defines the syntax of $ on a list. Does:

 BOD$(demand[3]) even work?
Error: unexpected '(' in "BOD$("

 - no. The parser sees a $ and then gets the next token (gram.y shows
this to be a symbol or a string constant) as the thing to deal with.
Symbols  I can't think of an example where $ and [ could have
ambiguous precedence that is syntactically correct, so maybe the order
is irrelevant...

 Just for fun:
[1] 2
[1] 1


Barry