[antlr-interest] The match rule c++ grammar define preproc directives
Serge Bakkal
serge.bakkal at wanadoo.fr
Tue Aug 5 11:09:41 PDT 2003
----- Original Message -----
From: "Serge Bakkal" <serge.bakkal at wanadoo.fr>
To: <antlr-interest at yahoogroups.com>
Sent: Tuesday, August 05, 2003 7:36 PM
Subject: Re: [antlr-interest] The match rule c++ grammar define preproc
directives
> BTW : I can read rules , but still hardly can write them
> that's why I'm posting this .
And because intellisense like features in an ide requires this
code_snippet :
(
LPAREN ()* RPAREN
)
| ~( ',' | RPAREN )
)*
code_snippet_list! :
code_snippet (COMMA code_snippet)*
;
CODE_SNIPPETS
:
LPAREN! (code_snippet_list)? RPAREN!
;
Im not sure that the ()* statement is correct
The scond lexer will feed in the define handler with any relevant char
Any comment is welcome !
handling #if #elseif #endif statement will be the final step here with c++
preprocessing .
Serge Bakkal
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list