bim_bom wrote:
Quote:
Quote:
If all your variables are VARIABLES and all your functions are
FunctionsDoingSomething() those should be recognizable patterns. Any
good text editor or a simple sed script would do that. Google for
"regular expressions".
>
Is it that simple?
Yes it is
Quote:
I think, that finding declarations is quite easy, but I
No it isn't, at least not in the general case.
Quote:
wanted to make my naming convention based on more things - if this is const,
or if this is a pointer, or if this variable is a member of function, of
class, or is it global.
Are you trying to create reasons why you can't just do it now? In that
case the following recipee should quell all that efforts ;-)
a) find all tokens to change with ctags -x
b) use the output to get valid substitution rules for sed or a text
editor.
c) apply the substitution rules
Automate this as much as you (want/need/it makes you finish faster) by
scripting. (Tcl/TK/bash/python/perl..., whatever turns you on).
Quote:
I would not be able to write it in "regular
expressions" - this is not a language for me ;)
"Those who don't understand regular expressions are doomed to reinvent
them - poorly."
Quote:
If nobody helps me, I think
I will write this "parser" by myself.
Have fun!
What you describe is a C++ syntax parser and will need the efforts of
at least several months. Oh, btw, I think the whole project is
pointless to start with. Use the new convention for new code and let
the old code rot in peace.
Anyway, not really a C++ issue, rather an issue of bad time management
;-(
FJK