En Wed, 02 Apr 2008 13:01:59 -0300, Maurizio Vitale  
<[EMAIL PROTECTED]> escribió:

> The intention is to match C++ identifiers, with or without namespace
> qualification, with or without arguments (e.g. variables, functions and
> macros).
> The following should be accepted:
>     main
>     main(int,char**)
>     ::main
>     std::cout
>     ::std::cout
>     NDEBUG

What about foo(int(*f)(int)) ?
You can't match a function definition with a regular expression alone, due  
to the nested (). The r.e. can recognize an identifier; you can later see  
whether there is a ( and scan up to the matching ).

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to