|
|
| more useful options | |
| PerlMonks |
I wrote an expression parser for PPIby BerntB (Deacon) |
| on Jan 07, 2026 at 12:35 UTC ( [id://11167088]=perlquestion: print w/replies, xml ) | Need Help?? |
|
BerntB has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I could use some wisdom from the esteemed monks regarding a mildly insane hobby project of mine. PPI does not parse expressions into an AST, nor does it assign list/scalar/null context. I’ve implemented that myself and put the code here: https://github.com/Percolisp/pcl. I wrote this parser because it makes a full Perl ==> Common Lisp transpiler possible. There’s already a prototype compiler in the repository as well; please see REMAINING.md for details. Moo/Moose would likely need to be handled by mapping them onto Common Lisp’s object system. String evals will have to wait until the transpiler itself is transpiled to CL. I think this could be useful. If nothing else, as a way to take the Lisp S-expression output and translate it into other languages. Does this sound worthwhile, or should I be doing something else instead? 🙂
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||