Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [TCS] Keywords
[TCS] Keywords [message #602304] Tue, 17 July 2007 11:34
Eclipse UserFriend
Originally posted by: remi.viaux.mbda-systems.com

Hi,

My problem is that I want to identify two distincts entities which begin
with the same identifier.
Here is the code I want to parse :

typedef type name;
typedef struct { ... } name;

(it's the C declaration of type of course)

Is it possible to use a keyword composed by 2 words in the template ?
because something like this doesn't work :

template Typedef
: "typedef" type name
;

template Struct
: "typedef struct" -- or "typedef" "struct"
type name
;

Those templates always recognize a single typedef element.

Thanks for the help.

Remi Viaux
Previous Topic:[AM3] Exception on startup
Next Topic:[AM3] Exception on startup
Goto Forum:
  


Current Time: Sat Dec 20 09:44:53 GMT 2014

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

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