[cfe-commits] [PATCH] Lexer for structured comments
Dmitri Gribenko
gribozavr at gmail.com
Fri Jun 22 11:21:51 PDT 2012
Hello,
The attached patch implements a lexer for structured comments. Highlights:
* The lexer is Doxygen-oriented. I know that we should be loose in
what we accept in comments, but I mainly focused on Doxygen
constructs.
* Embedded HTML lexer produces very "fat" tokens, e.g., "<tag>" or
'attr="value"' are single tokens. This can be changed later to more
fine-grained tokens if needed.
* Markdown and automatic link generation (to function declarations)
are not supported. I think that these should be added at parser level
with regexps.
Please review.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comments-lexer-v1.patch
Type: application/octet-stream
Size: 60375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120622/0b0899f1/attachment.obj>
More information about the cfe-commits
mailing list