Closed hwayne closed 1 month ago
On my Linux machine with the latest version of the extension when I copy paste your example code and run Parse:
shows a parsing error on x = 1
which should be x :=1
. If you fix it and leave Foo == x > 0, pluscal will be transpiled to TLA+ as expected.
If you don't see the error, what version of the extension are you running?
I'm running the latest version, but it's also on Windows. Maybe it's an OS difference?
Ah, looks like it was fixed no later than v2024.10.192237. Closing!
Spec:
Running
Parse Module
gives the error "Unknown Operator:x
" inFoo
. Translating the PlusCal should fix this error, but translation fails silently. Commenting out theFoo
operator provides the translation error, which is thatx = 1;
is not valid PlusCal. So the error withFoo
(in the TLA+) is suppressing the error withx = 1;
(in the PlusCal).