itch.io is community of indie game creators and players

Devlogs

Parsing Expressions

Worlds - History Simulator
A downloadable game for Windows and macOS

Sorry in advance for the very short and somewhat unexciting dev update. But this was a weekend focused entirely on writing implementation code which doesn't yet produce any interesting results unfortunately... I'm currently implementing the parser for the new expression model I talked about last week. I have added so far the base code which, so far, allows me to parse very simple math and logic expressions, plus code to be able to retrieve contextual data from a mod entry like an event or decision. With this, I think I have a good base on which I'll be able to expand quickly over the next few weeks.

This week I'll continue the work on the parser with the goal of implementing entity attribute parsing. This is the bit that will allow modders to extract data from entities, like cells, groups, factions, and polities, in order to test their event conditions and implement their effects. Once that is done, I will continue with function parsing, which is going to be final element of this expression model. With any luck, I'll be able to start implementing a full decision mod parser not long after.

Download Worlds - History Simulator
Read comments (3)