4 ms·
I wrote something very similar some years back: https://github.com/zwegner/prethon/ https://github.com/zwegner/prethon/ I can't remember if I saw Cog first, an
by zwegner 8y ago
I wrote something very similar some years back: https://github.com/zwegner/prethon/ https://github.com/zwegner/prethon/
I can't remember if I saw Cog first, and wrote a different version that fit my needs better, or if I only found Cog afterwards...
It uses a more PHP-esque syntax for inserting Python code. It has inline expression syntax, and quote functions, which IMO make it nicer than Cog for using as a code preprocessor--it's easy to make e.g. function specializations, or loop over code blocks. It's not very well documented though, and is probably missing some nice features.