The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Clownfish::Parser - Parse Clownfish header files.

SYNOPSIS

     my $class_def = $parser->class($class_text);

DESCRIPTION

Clownfish::Parser is a combined lexer/parser which parses Clownfish header files. It is not at all strict, as it relies heavily on the C parser to pick up errors such as misspelled type names.

METHODS

new

Constructor, takes no arguments.

strip_plain_comments

    my $stripped = $parser->strip_plain_comments($code_with_comments);

Remove plain C comments from supplied code. All non-whitespace characters are turned to spaces; all whitespace characters are preserved, so that the number of lines is consistent between before and after.

JavaDoc-syntax "DocuComments", which begin with "/**" are left alone.

This is a sloppy implementation which will mangle quoted comments and such.

COPYRIGHT AND LICENSE

Copyright 2008-2010 Marvin Humphrey

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.