You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
----- MODULEBar ------
EXTENDSNaturalsVARIABLEvS=={0,42}Spec==v=0/\[][v'\inS]_vF1==INSTANCEFooWITHC<-STHEOREMA==Spec=>F1!SpecTHEOREMB==Spec=>F1!Init/\[][F1!Next]_F1!varsF2(c)==INSTANCEFooWITHC<-cTHEOREMC==Spec=>F2(S)!SpecTHEOREMD==Spec=>F2(S)!Init/\[][F2(S)!Next]_F2(S)!vars\* TLAPS doesn't like F2(S)!vars
=====
SANY accept A, B, C, and D just fine, but TLAPS' parser reports a syntax error for D:
-> %~/.opam/5.1.0/bin/tlapm --version
6acb3cb
-> %~/.opam/5.1.0/bin/tlapm Bar.tla
File"./Bar.tla", line 16, character 53Unexpected (
File"<unknown>":
Error: Couldnot parse "./Bar.tla" successfully.
tlapm ending abnormally withFailure("Module.Parser.parse_file")
Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33Called from Tlapm_lib__M_save.clocking in file "src/module/m_save.ml", line 24, characters 18-22Called from Tlapm_lib.read_new_modules.(fun) in file "src/tlapm_lib.ml", line 503, characters 8-57Called from Stdlib__List.fold_left in file "list.ml", line 123, characters 24-34Called from Tlapm_lib.main in file "src/tlapm_lib.ml", line 561, characters 20-43Called from Tlapm_lib.init in file "src/tlapm_lib.ml", line 589, characters 8-33
-> % tlapm --version
1.5.0
-> % tlapm Bar.tla
File"./Bar.tla", line 16, character 53Unexpected (
File"<unknown>":
Error: Couldnot parse "./Bar.tla" successfully.
tlapm ending abnormally withFailure("Module.Parser.parse_file")
Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33Called from M_save.clocking in file "m_save.ml", line 25, characters 16-20Called from Tlapm.read_new_modules.(fun) in file "tlapm.ml", line 455, characters 8-112Called from Stdlib__list.fold_left in file "list.ml", line 121, characters 24-34Called from Tlapm.main in file "tlapm.ml", line 490, characters 20-43Called from Tlapm.init in file "tlapm.ml", line 518, characters 8-33
The text was updated successfully, but these errors were encountered:
lemmy
changed the title
Syntax error in parameterized refinement occurring in subscript
Syntax error when parameterized refinement occurs in subscript
Sep 19, 2024
(We recently added better support for parameterized refinement in TLC: tlaplus/tlaplus#687)
We may check that module
Bar
refinesFoo
with:SANY accept
A
,B
,C
, andD
just fine, but TLAPS' parser reports a syntax error forD
:The text was updated successfully, but these errors were encountered: