Multi-language Expression Parser & Evaluator

Ian Thomas
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.

https://github.com/wildwinter/expression-parser

--

--

Ian Thomas
Ian Thomas

Written by Ian Thomas

Ian is narrative director, coder, and writer of video games, films, larp, books, live events, and VR/AR experiences. Find him on Bluesky or LinkedIn.

No responses yet