More About Tiny #Scripting Engines, my new #interpreter construction #tutorial, is now at https://notimetoplay.org/cgi-bin/wiki/More_about_tiny_scripting_engines for your reading pleasure.
@notimetoplay Writing expression parsers is pretty fun! There's this language called TRoll for describing dice rolls (https://topps.diku.dk/torbenm/troll.msp) that I wrote a sort-of transpiler for once; I would literally create C# functions out of valid TRoll programs.
Though these days I'm lazy and tend towards just including a somewhat-sandboxed Lua...
@suivran Yes, it is! Also laborious and repetitive. And I bring up embedding Lua at the end of the tutorial.
@suivran TRoll looks like a mix of Forth and J. :D
@dulsi Which would... turn it into a conventional interpreter and miss the whole point. It's what S-Lang did. An otherwise very intriguing experiment. How many applications use it?
@dulsi Yes, a separate program that would be a dependency bigger than the original project, thus AGAIN missing the entire point. And the plan was to convince people they don't need to BE afraid of postfix notation. As stated repeatedly throughout the tutorial.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!