[Grace-core] Parsing ambiguity

James Noble kjx at ecs.vuw.ac.nz
Tue Jul 1 17:48:52 PDT 2014


On 2/07/2014, at 12:41 pm, Timothy Jones <tim at ecs.vuw.ac.nz> wrote:

> At that point, shouldn't it be parsed as comparison operators, because that
> parse makes sense? Or do operators *have* to be separated from words?

that's the problem with ambiguous parses: there's no right answer, we have to decide.

Saying  binary operators (especially "<" and ">") should be spaced away from their arguments,
which generic parameters must not me, is a way of resolving that ambiguity

James


More information about the Grace-core mailing list