viatra / EMF-IncQuery

This repository is only kept for historic reasons. All development happens on eclipse.org
http://eclipse.org/viatra
13 stars 4 forks source link

Misleading parser error #331

Closed bergmanngabor closed 11 years ago

bergmanngabor commented 11 years ago

The following line:

    Student.name(42, SName);

yields the following error on "42":

Keywords of the query language are to be prefixed with the ^
   character when used as an identifier

I was expecting something more like a type error.

Priority is low, since at least there is some kind of error message.

ujhelyiz commented 11 years ago

Updated error message. Should be fixed in master.

istvanrath commented 11 years ago

Now I'm getting "mismatched input '42' expecting RULE_ID" - is this any better? Removing the resolved flag.

ujhelyiz commented 11 years ago

Migrated to https://bugs.eclipse.org/bugs/show_bug.cgi?id=398825