aebabis / factorio-state-machine

MIT License
15 stars 8 forks source link

Assignment of negative values to signals #34

Closed TokMor closed 2 years ago

TokMor commented 2 years ago

Attempting to assign a signal to a negative value causes the parser to error. For example, paste the below text into the parser to create this issue

10: A = -1 => 10

aebabis commented 2 years ago

I just updated the grammar to allow unary minus: https://github.com/aebabis/factorio-state-machine/commit/30797a208671d2eb71b13584dbdbbdb49313211b Tested in game and produces negative values. Have a good weekend.