Closed federicobond closed 1 year ago
Btw, does "level" mean something to people experienced in TLA+ or is it just an implementation detail of the compiler?
Could be a good opportunity to rewrite that error message for clarity.
There are four levels of operators:
Five == 5
)Add(x, y) == x + y
)Inc(x) == x' = x + 1
)[][Inc(var)]_var
)Generally this only matters for errors like this. Good to add to a troubleshooting section though.
Thanks for the explanation! Yeah, a troubleshooting section with common errors could be super helpful.
The previous argument resulted in the following parser error:
I'm just learning TLA+ so I cannot verify this, but looks reasonable from a pure functional evaluation semantic.