Parsing Expressions


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.

Get Worlds - History Simulator

Comments

Log in with itch.io to leave a comment.

(+1)

Ditto! I'm looking forward to learning how to mod and to the extent I understand it, your new method seems like a great improvement. I hope it doesn't end up being super hard to code!

(2 edits) (+2)

That's wonderful, keep up the good work.

Honestly, I trust in your game so much I am considering learning how to mod just for helping you out. Don't expect anything though ^^

(+1)

Thanks! I hope you find my modding implementation easy enough to learn (when it's done :) )