NAME
Parse::QTEDI - Parse QT/KDE preprocessed headers
SYNOPSIS
use Parse::QTEDI qw($parser);
defined $parser->begin($in) or warn "parse failed";
USAGE
$gcc -E -DBLAH_BLAH E<lt>header.hE<gt> E<gt> E<lt>header.iE<gt>
$parse_qtedi_header E<lt>header.iE<gt>
DESCRIPTION
Parse QT/KDE preprocessed headers to generate interface information.
WHAT IS INPUT
input stream should be the output of a preprocessor like `gcc -E -DBLAH_BLAH'.
NOTE: Normally one should strip #include and #error directives before invoking preprocessor.
WHAT IS OUTPUT
YAML-ish output to STDOUT; debug info to STDERR if $DEBUG defined.
WHY IS PREPROCESSED
To solve macro, basically. There are both arch-specific and feature-specific macros. One should decide which feature-specific ones to enable. Besides, modern libtool normally record compile-time commandline options for later reference.
WHAT IS THE NAME
QTEDI is QT and QT-basEd Desktop environment Interface ;-)
EXPORT
An instance of Parse::RecDescent on demand
SEE ALSO
svn repos http://dongxu.googlecode.com/svn/trunk/Parse-QTEDI/
Also check my Perl QT4 binding project page http://code.google.com/p/dongxu/wiki/PerlQT
AUTHOR
Dongxu Ma, <dongxu.ma@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2007 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.