[cfe-dev] Preprocessor::LookNext
Argiris Kirtzidis
akyrtzi at gmail.com
Thu Jul 3 18:14:19 PDT 2008
Hi,
The "nested-name-specifier '::' " syntax occurs at enough places that it
would really simplify the code if an efficient
Parser::GetLookAheadToken(1) could be used.
I attached a Preprocessor::LookNext implementation for this
(pp-looknext.patch).
In the "parse-labeled" patch I use LookNext to determine a label and use
a separate Parser::ParseLabeledStatement.
Let me know what you think.
-Argiris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pp-looknext.patch
Type: text/x-diff
Size: 2164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080703/b49b6797/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parse-labeled.patch
Type: text/x-diff
Size: 4332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080703/b49b6797/attachment-0001.patch>
More information about the cfe-dev
mailing list