16 Apr 2012 21:20:13 UTC
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (538 / 134 / 8)
- KwaliteeBus factor: 0
- 85.27% Coverage
- License: perl_5
- Activity24 month
- Download (852.87KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCREAMYG Marvin Humphreyand 1 contributors
- Marvin Humphrey <marvin at rectangular dot com>
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.
Copyright 2008-2011 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.