Multi-language Expression Parser & Evaluator
Mar 16, 2025
Gamedevs! I made a multi-language string expression parser and evaluator.
That probably sounds fancier than it is. It’s designed to understand things in my data like:(location==”spain” and is_day_time) or spell_power(“jamie”)>12
and to be able to return a result at runtime.
I’ve supplied code for C#, C++, Javascript, and Python. It should work the same for all of those.
Hopefully someone will find it useful for something! Let me know if you do.