[Rd] Problem with ?Syntax
b.rowlingson at lancaster.ac.uk
Sat Feb 20 12:57:42 CET 2010
On Sat, Feb 20, 2010 at 9:52 AM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> In ?Syntax [ is given as higher priority than $ but BOD$demand
> seems to be the same as (BOD$demand) contrary to [ being higher
>  19
>  19
> What is the rule being used here?
I think its the parser rule that defines the syntax of $ on a list. Does:
BOD$(demand) 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
Just for fun:
More information about the R-devel