From: Eric M. Ludlam <eric@si...> - 2008-03-14 12:05:15
>>> "=?ISO-8859-1?Q?Per_Nordl=F6w?=" <per.nordlow@...> seems to think that:
>Can I use the parse results of Semantic to colorize my source code tokens
>(in C/C++)? If so where do I start?
>Thanks in advance,
You can not use the existing semantic c/c++ parser to colorize code.
You could, however, write a new parser in Semantic that uses grammar
actions that do colorization. If you used the existing C/C++ grammar
as a starting point, then you would only be able to colorize the
declarations, but not the code, since the existing parser doesn't
parse the code. It would provide a good proof of concept for the
process which no-one has yet tried.
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net