Revision 564365
Go back to digest for 23rd July 2006Features in Development Tools
Jakob Petsovits committed changes in /branches/work/kdevelop-pg/src:
Let kdevelop-pg generate namespaces for the parser, the ast nodes,
the visitors and the user-defined namespaces. Basically, everything
except the user-defined code insertions from the start and the end
of the grammar file is namespaced now.
That has several positive aspects:
- be good neighbors with other kdev-pg based parsers
(two clashing expression_ast structs, anyone?)
- the parser class is finally named as such: class <language>::parser;
- better readability for most stuff
Drawback: You have to port some code,
how much it is depends on the amount of custom code extensions.
(As usual, kdev-pg's example grammars will be updated right away.)
File Changes
Modified 6 files
- /branches/work/kdevelop-pg/src
- /kdev-pg-ast-gen.cpp
- /kdev-pg-code-gen.cpp
- /kdev-pg-default-visitor-gen.cpp
- /kdev-pg-main.cpp
- /kdev-pg-visitor-bits-gen.cpp
- /kdev-pg-visitor-gen.cpp
6 files changed in total