Use pegen, I created a Python superset language. MíngShé
It implements the pipeline (
"hello" |> print), partial (
(lambda x: x) |> sorted ([2, 1, 4], key =?) |> print), and optional chain
And you can import your MíngShé code directly as a Python module after installing MíngShé.
If interested, please try it and give me some feedback.