Single quotation marks consumed incorrectly [message #1058806] |
Wed, 15 May 2013 03:55  |
Eclipse User |
|
|
|
Hello, following problem:
I'm in the process of defining a grammar.
One concrete function should look as follows:
However, currently only
(note the whitespace) and
seem to work.
Trying the function as it should be produces the error <mismatched input ','' expecting ','> at the comma.
However, I can't seem to find the error in my grammar that would cause this.
Func: 'Func''('something=String_Encap_IntParam','sthElse=String_Encap_IntParam')';
..
String_Encap_IntParam : STRING_ENCAP_INT;
terminal STRING_ENCAP_INT : '"' INT '"' | "'" INT "'";
I do not have any terminals or Datatypes defined that involve the sequence ",'" either, so I'm at a loss here, especially since a simple whitespace makes the function work.
Help is much appreciated.
[Updated on: Wed, 15 May 2013 03:57] by Moderator
|
|
|
|
Re: Single quotation marks consumed incorrectly [message #1058809 is a reply to message #1058808] |
Wed, 15 May 2013 04:12  |
Eclipse User |
|
|
|
Hello - yeah, it seems to work on a minimal example, just wrote one up quickly.
I guess there's some ambiguity hidden somewhere after all.
Thanks anyway!
Edit:
It also works now and I have no idea why. Always nice.
[Updated on: Wed, 15 May 2013 04:20] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.54895 seconds