I wrote Perl::Lexer
Perl::Lexer is a lexer library for Perl5. It supports full spec perl5 code.
Why?
We can create some language related tools on Perl5 lexer library.
Why is it good?
It uses Perl5 code for lexical analyzing. It means the lexical analyzing rules are just compatible with Perl5 code.
Why is it bad?
It calls perl5's internal APIs.
Related things
- Compiler::Lexer is written from scratch.
- PPI is great perl5 parser library
Future Plan?
I hope Perl5 provide more lexer API. Or, I need to include the copy of the toke.c.
Do you have any suggestions? If you have an idea, please write it in the Disqus comments.