CTree is a library that can be used by (AtheOS) programs that wish to parse C++ sourcecode. It loads a 'tree' structure that can be searched for one or more sourcefiles.
CTree is intended to be used by GUI-building tools who want to parse C++ code to determine the GUI layout described within. This utility code strives to provide the foundation on which to build RAD tools. A user should be able to start a GUI building tool from their code, move things around, add and remove components, edit the properties of these components, including assigning event handler methods, then save the code and go back to editing in their preferred text editor. It might even be possible to use this library to provide live GUI drawing based upon live code editing in a code editor.
An example program uses the library to parse some example AEdit code to find screen windows, and any menus declared within them.
20020516 | Loading and parsing C++ sourcecode |
20020517 | Nesting loaded sourcecode |
20020517 | Searching for patterns |
20020520 | Optional expressions in patterns |
- | Adding, modifying and removing blocks in the tree |
- | Saving sourcecode back to disk (with user indentation and commenting preserved whereever possible!) |
- | Supporting true regular expressions |
ctree-0_5-alpha-src.zip
(~14k, 20020607)