[Grace-core] Parsing ambiguity

James Noble kjx at ecs.vuw.ac.nz
Tue Jul 1 15:53:30 PDT 2014


On 2/07/2014, at 10:48 am, Timothy Jones <tim at ecs.vuw.ac.nz> wrote:

> 
> Ugh. So we just have to accept that a student writing run(a<B, C>1) will get a weird error message?

what do you think it should do?

According to the grammar in the spec, it's a syntax error as bare integers aren't considered delimited.

I think  run(a<B, C>(1))  parses,  presumably as a generic call on a(1) with B,C type arguments   "a(1) type(B,C)"  

But I'd need to look harder at the grammar.

James


More information about the Grace-core mailing list