[cfe-commits] [PATCH] Parsing C++0x lambda expressions

John Freeman jfreeman at cse.tamu.edu
Wed Jul 6 14:12:38 PDT 2011


> Pseudo-code:
> if (is('=' or '&') and next token is not identifier)
>   set default capture
>   if (is(','))
>     consume comma
>
> loop()

This won't work if there is no comma between the default and the first 
capture, or if there is a comma after the default, but no successive 
capture.

- John



More information about the cfe-commits mailing list