[Grace-core] Parsing ambiguity

Michael Homer mwh at ecs.vuw.ac.nz
Tue Jul 1 15:55:55 PDT 2014


On Wed, Jul 2, 2014 at 10:48 AM, Timothy Jones <tim at ecs.vuw.ac.nz> wrote:
> On 01/07, Michael Homer wrote:
>> Or rather, it's run((a < B), (C > 1)). run(a<B, C>1) is unambiguously
>> using generic parameters, since there's no space.
>
> Ugh. So we just have to accept that a student writing run(a<B, C>1) will get a
> weird error message?
The weirdness or otherwise of the error is up to the implementer and
dialect author.

Operator parsing always depends on whitespace delimiting: a ++ b is
not the same as a + +b.
-Michael


More information about the Grace-core mailing list