News for hackers. Stuff that matters.
Re:Writing a Mathematica Interpreter in Typescript by coffeemug on Tuesday October 22, 2024 @01:09PM (#41916368)
Very cool! Pattern matcher isn't very advanced, I only spent maybe two days on it. Only supports Blank, Pattern, and PatternTest. (Also doesn't handle Flat, so for example in Mathematica `Times[x_, y_]` will match `Times[a, b, c]`, but it currently doesn't in ts-wolfram.)

I'm new to Mathematica, so didn't know about `Condition` (thanks for mentioning it)

It was a little hard to get going, the parsing stage usually stops me because I never learned a good parser generator well enough to just start writing code. But once I got ts-parsec working, the rest was fairly easy. I think I got `D` to work within like two days. Was also very surprised how much you can do with so little!

Shoot me an email at [email protected], let's chat more!

Re:Writing a Mathematica Interpreter in Typescript by anandijain on Thursday October 24, 2024 @11:10PM (#41941907)
just sent u an email and yeah I ditched the m expr parser and just made the dumbest parser I could haha