Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [TCS] Problem with symbols
[TCS] Problem with symbols [message #378065] Fri, 01 June 2007 14:43 Go to next message
Guillaume Hillairet is currently offline Guillaume HillairetFriend
Messages: 97
Registered: July 2009
Member
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 #378066 is a reply to message #378065] Sat, 02 June 2007 12:58 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
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 #378068 is a reply to message #378066] Mon, 04 June 2007 09:49 Go to previous messageGo to next message
Guillaume Hillairet is currently offline Guillaume HillairetFriend
Messages: 97
Registered: July 2009
Member
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
Re: [TCS] Problem with symbols [message #378070 is a reply to message #378068] Tue, 05 June 2007 08:16 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
Hello,

> 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. ..)

Yes, there are updated versions of the jars (especially ebnfinjector) in
the ATL CVS:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.engine/lib/?roo t=Modeling_Project


Regards,

Frédéric Jouault
Re: [TCS] Problem with symbols [message #601607 is a reply to message #378065] Sat, 02 June 2007 12:58 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
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 09:49 Go to previous message
Guillaume Hillairet is currently offline Guillaume HillairetFriend
Messages: 97
Registered: July 2009
Member
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
Re: [TCS] Problem with symbols [message #601632 is a reply to message #378068] Tue, 05 June 2007 08:16 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
Hello,

> 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. ..)

Yes, there are updated versions of the jars (especially ebnfinjector) in
the ATL CVS:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.engine/lib/?roo t=Modeling_Project


Regards,

Frédéric Jouault
Previous Topic:[TCS] Where is km3.tcs file ?
Next Topic:[TCS] Strange xsi:type tag value prefix
Goto Forum:
  


Current Time: Tue Apr 16 21:08:05 GMT 2024

Powered by FUDForum. Page generated in 0.90856 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top