#Considering using TXR as a dependency. What alternatives exist?

1 messages · Page 1 of 1 (latest)

gentle haven
#

i'm thinking about winding support for TXR into a library. TXR is really good but i'm wondering what other simple runtime evaluation systems exist for GameMaker that i could support

gentle haven
lethal panther
#

I don’t think I can think of too many from the top of my head, besides the obvious. (Catspeak, that one JSON-based runtime variant that was in Cookbook Jam… can’t remember it)

#

Or writing your own 🤔

viscid cypress
#

i also know of someone who has added function support to txr, so you can define functions inside it

gentle haven
#

now that i'm thinking about it a bit more i don't think i need something as featureful as TXR even

#

probably better off writing my own thing

viscid cypress
#

something just to run oneline commands?

#

or arguments?

lethal panther
#

summons crafting interpreters

gentle haven
#

i've got an expression parser lying around somewhere

viscid cypress
#

i mean you have one in your file parsing library no?

gentle haven
#

yeah but that one's crap

stable kettle
#

Do you need to only evaluate expressions, or also statements?

gentle haven
#

both

stable kettle
#

Yeah it gets more complicated then. Like Tab said, Crafting Interpeters is a great source.

gentle haven
#

thanks but that's not the question

#

i know how to write a parser etc. but it would be nice to use someone else's

stable kettle
#

Yeah, I don't know whether there are actually other ones freely available (outside what has already been mentioned)

viscid cypress
#

no need for credits

gentle haven
#

i would like to take a look if nothing else

viscid cypress
#

was designed to be added to or removed from extremely easily

gentle haven
#

oh yeah! i made a parser for that animation language i wrote

#

now i remember

viscid cypress
#

it's also got env support just as catspeak does, but if you need something light weight it doesnt need to be in there

#

but you can check your email i just sent you an invite on github

#

just dont look at the macros in gen 5

gentle haven
#

mmok thank you very much

#

i'll snoot around