11 Aug 2011 02:55:56 UTC
- Distribution: Lucy
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (3 / 16 / 0)
- KwaliteeBus factor: 1
- License: apache_2_0
- Perl: v5.8.3
- Activity24 month
- Download (1.02MB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:6 non-PAUSE usersCREAMYG Marvin Humphreyand 1 contributors
- The Apache Lucy Project <lucy-dev at incubator dot apache dot org>
Clownfish::Parser - Parse Clownfish header files.
my $class_def = $parser->class($class_text);
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.
Constructor, takes no arguments.
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.