[cfe-dev] How difference of implement pragma handler in lexer and parser

Pisit Makpaisit haoremixman at gmail.com
Mon Jun 28 18:46:00 PDT 2010


I notice that clang can implement the pragma handler in both lexer
(Lex/Pragma.cpp) and parser (Parse/ParsePragma.cpp). How difference of they?

If my pragma directive has an expression. How can I parse and check
expression syntax in pragma?
I think I should implement pragma handler in parser for parse the expression
but I don't know how can I do.


Thanks in advance.
-- 
Remixman (Pisit Makpaisit)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100629/84cbbc78/attachment.html>


More information about the cfe-dev mailing list