BerntB has asked for the wisdom of the Perl Monks concerning the following question:
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? 🙂
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I wrote an expression parser for PPI
by LanX (Saint) on Jan 07, 2026 at 22:34 UTC | |
by BerntB (Deacon) on Jan 08, 2026 at 12:50 UTC | |
by LanX (Saint) on Jan 08, 2026 at 15:46 UTC | |
by BerntB (Deacon) on Jan 08, 2026 at 20:55 UTC | |
by LanX (Saint) on Jan 08, 2026 at 22:04 UTC | |
|