Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BecomesNull argument in Action Properties example #57

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

federicobond
Copy link
Contributor

The previous argument resulted in the following parser error:

The level of argument 1 exceeds the maximum level allowed by the operator.

I'm just learning TLA+ so I cannot verify this, but looks reasonable from a pure functional evaluation semantic.

The previous argument resulted in the following parser error:

The level of argument 1 exceeds the maximum level allowed by the
operator.
@federicobond
Copy link
Contributor Author

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.

@hwayne
Copy link
Owner

hwayne commented Jul 5, 2023

There are four levels of operators:

  1. Constant operators (Five == 5)
  2. Operators with parameters (Add(x, y) == x + y)
  3. Actions (Inc(x) == x' = x + 1)
  4. Temporal formula ([][Inc(var)]_var)

Generally this only matters for errors like this. Good to add to a troubleshooting section though.

@hwayne hwayne merged commit e3acee0 into hwayne:master Jul 5, 2023
@federicobond
Copy link
Contributor Author

Thanks for the explanation! Yeah, a troubleshooting section with common errors could be super helpful.

@federicobond federicobond deleted the fix-becomesnull branch July 5, 2023 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants