Error 'no viable alternative at character '<EOF>' [message #1070545] |
Thu, 18 July 2013 07:30 |
chris yo Messages: 146 Registered: February 2013 |
Senior Member |
|
|
I have this grammar:
Model:
definitions += Locations*
;
Locations:
Global | Local
;
Global:
'@Global_Save' path=STR2 ';'
;
Local: {Local}
local='Locale' 'Save' ('To' path=STR2)? ';'
;
STR2 hidden():
STRING2;
terminal STRING2: '"' -> '"' ;
I have this configuration in a text file:
@Global_Save "dir_01\";
Locale Save "dir_01\";
But I keep on getting this error:
ERROR:no viable alternative at character '<EOF>'
ERROR:mismatched input 'dir_01' expecting RULE_STR2
ERROR:mismatched input '\' expecting 'Locale'
ERROR:no viable alternative at character '<EOF>'
If I put "dir_01\" in @Global_Save, my generation works successfully. But if I use the same input in Locale, I get the errors I mentioned above. Does somebody know what the problem is?
I've tried setting the Local to "dir_01" and "dir_01/", and I did not get any errors.
[Updated on: Thu, 18 July 2013 07:36] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04605 seconds