Skip to content
Prev 46165 / 63461 Next

should the text for RIGHT_ASSIGN be -> in getParseData()?

On 13-07-05 3:31 AM, Yihui Xie wrote:
It's by design, but I agree it's not ideal.  The reason for it is that 
"1 -> x" is parsed as `<-`(x, 1).  I think the parser only does 
translations like this for -> and ->>.  Currently the parser shows the 
name of the binary operator as the text.

I'll look into adding special handling for translations like this.  We 
will still parse the assignment in the same way, but the getParseData 
text could be the true text.

Duncan Murdoch