[TCS] Problem with symbols [message #378065] |
Fri, 01 June 2007 10:43  |
Eclipse User |
|
|
|
Hi,
I've got a problem with symbols in TCS and i don't know why.
I've got a template like this :
template PrefixDecl
: "PREFIX" prefix <no_space> ":" "<" <no_space> uri <no_space> ">"
;
which is supposed to parse a line like this one :
PREFIX truc: <much>
and in symbol section
symbols {
colon = ":" : leftNone, rightSpace;
gt = ">";
lt = "<";
...
But i've got this error during execution
[am3.loadModel] Error: 1:12: expecting COLON, found ':'.
[am3.loadModel] Error: 2:11: expecting COLON, found ':'.
Is there anyone who can tell me why the symbols colon is not recognize as
":"
Regards
|
|
|
|
|
|
Re: [TCS] Problem with symbols [message #601607 is a reply to message #378065] |
Sat, 02 June 2007 08:58  |
Eclipse User |
|
|
|
Hi,
Can you please make sure there is no error or warning (e.g., lexer
ambiguity) message when you compile your TCS model?
Regards,
Frédéric Jouault
Guillaume Hillairet wrote:
> Hi,
>
> I've got a problem with symbols in TCS and i don't know why.
>
> I've got a template like this :
>
> template PrefixDecl
> : "PREFIX" prefix <no_space> ":" "<" <no_space> uri <no_space> ">"
> ;
> which is supposed to parse a line like this one :
> PREFIX truc: <much>
>
> and in symbol section
> symbols {
> colon = ":" : leftNone, rightSpace;
> gt = ">";
> lt = "<";
> ...
>
> But i've got this error during execution
> [am3.loadModel] Error: 1:12: expecting COLON, found ':'.
> [am3.loadModel] Error: 2:11: expecting COLON, found ':'.
>
> Is there anyone who can tell me why the symbols colon is not recognize
> as ":"
>
> Regards
>
|
|
|
Re: [TCS] Problem with symbols [message #601618 is a reply to message #378066] |
Mon, 04 June 2007 05:49  |
Eclipse User |
|
|
|
Hi,
I've resolved my problem. It wasn"t an error in the TCS but a
configuration problem for the TCS2JAR build when using the TCSToolkit. So
i use another TCS2JAR.xml directly in the project directory, adding
ebnfinjector.jar, vm.jar and antlr in classpath. Now it works fine.
Question on TCS2JAR. Is there an updated version that takes account of the
new atl location. When i used this build to create a jar file, i've got
errors coming from bad references to older atl location (org.atl. ...
rather than org.eclipse.m2m.atl. ..)
Regards
|
|
|
|
Powered by
FUDForum. Page generated in 0.08049 seconds