[TCS] Keywords [message #602304] |
Tue, 17 July 2007 07:34 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.33854 seconds