Whats kdev-pg-replacement.h used for?
Roberto Raggi
roberto.raggi at gmail.com
Mon Jul 9 13:32:52 UTC 2007
Hi!
oops!! kdev-pg-replacement is way too hardcoded :-) btw kdev-pg-
replacement is used to write `code refactoring operations'. I have
attached a little example and a new version (not very well tested) of
kdev-pg-replacement.h. Just let me know if it is good enough for you.
The example contains:
- r.g the grammar for our dummy language
- R_main.cpp the tokenizer + the main example
- new version of include/kdev-pg-replacements.h without the hardcoded
char* crap
- the generated files
ciao robe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r.tar.gz
Type: application/x-gzip
Size: 7020 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20070709/e4acce43/attachment.gz>
-------------- next part --------------
Il giorno 08/lug/07, alle ore 00:39, Andreas Pakulat ha scritto:
> Hi,
>
> could someone please enlighten me what kdev-pg-replacement is needed
> for?
>
> It seems to do some processing on the text of tokens, but thats not
> going to work as I want to remove the type-definition for the text
> of a
> token. The reason is simply to make kdev-pg more generally usable, for
> example with QString, or if somebody wants with wchar_t or with
> std::string as the type for the parser content.
>
> So shall I nuke the header? (it doesn't seem to be used by anything
> in a
> generated parser)
>
> Andreas
>
> --
> You'll never see all the places, or read all the books, but
> fortunately,
> they're not all recommended.
>
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
More information about the KDevelop-devel
mailing list