Hi,
Sorry for a late reply.
>>> christopher@... seems to think that:
>I'm using Jan Borsodi's beast of a .emacs which is available here:
>
>http://www.dotemacs.de/dotfiles/JanBorsodi/JanBorsodi.emacs.html
>
>I has its own regexs for parsing all kinds of stuff, and I was wondering
>if it could be simplified by using semantic. I'm think of slowly
>reworking Jan's configuration to use semantic instead. I suspect that it
>would reduce a lot of his parsing code, but I'm not sure what type of
>information is available. For instance Jan's code can insert #includes by
Semantic provides tag lists, and can provide tags for what is under
point. A tag has a name, data type, list of class members (for
classes) or argument lists (functions.) Looking at the above
provided link, this is similar to what many functions in that .emacs
file do.
>scanning the top of the c++ file. He does this with a pretty brute force
>mechanism.
The JDE has a similar function that uses semantic to do some of the work.
I think the code is basically:
1) find all the includes
2) transform them (sort, insert, expand, etc)
3) delete the found tags
4) insert new code from the tags
>I was also wondering if semantic could be used for font-lock highlighting.
I could, but there is no infrastructure for it.
>Jan's configuration is really dialed in for qmake, and I would like to
>extend it work with cmake which is my preferred project manager...
[ ... ]
semantic can parse Makefiles. I don't know how that relates to q or
c make.
Once something is parsed, it is easy to delete, move, and transform
the tags in the buffer.
Eric
--
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org
|