Skip to content
Prev 33043 / 63421 Next

R_parseVector and syntax error [was: error messages while parsing with rniParse]

Simon Urbanek wrote:
I understood that.  But the C code can get the error message by 
evaluating an R expression and looking at the result.
I wouldn't mind exposing the underlying information in a clean way, but 
the string in R_ParseVector isn't all a front end should get. 

At the time of an R_ParseVector syntax error, the parser knows what 
token it couldn't handle, and it knows its classification, and the 
location in the file where it came from.   Not all of that makes it 
through to the error message.
It was what I was arguing against.

Duncan Murdoch