tlaplus / pluspy Goto Github PK
View Code? Open in Web Editor NEWPython interpreter for TLA+ specifications
License: MIT License
Python interpreter for TLA+ specifications
License: MIT License
Hello, thank you for sharing PlusPy.
I just cloned the repository and tried to run tests with ./regres.scr and the test 11 failed.
I tried to run directly ./pluspy -S0 -c100 Exprs
and I got can't load TLC : fatal error
.
I believe the TLC module is missing. I'll link a pull request.
I am using EXTENDS
with the TLC
module (e.g at the HourClock
module) and it gives me the error
unknown identifier STRING (TLC.tla:121:42)
This is some prose preceding the module definition.
\* WORKAROUND: Comment prose before the module definition.
---- MODULE AsyncGameOfLifeDistributed -----
VARIABLE x
Spec == x = TRUE /\ [][x'\in BOOLEAN]_x
====
markus@avocado:~/src/TLA/_specs/models/realworld/AsyncGameOfLife(master)$ pluspy -c 1 AsyncGameOfLifeDistributed
Parsing failed ['GModule', 'Concat', ("tok: no match with '----'", '* (AsyncGameOfLifeDistributed.tla:1:1)')]
[]
At position ('*', ('AsyncGameOfLifeDistributed.tla', 1), 1, True)
Traceback (most recent call last):
File "/home/markus/src/TLA/_community/PlusPy/pluspy.py", line 4286, in <module>
main()
File "/home/markus/src/TLA/_community/PlusPy/pluspy.py", line 4251, in main
pp = PlusPy(args[0], seed=seed)
File "/home/markus/src/TLA/_community/PlusPy/pluspy.py", line 3587, in __init__
raise PlusPyError("can't load " + file)
__main__.PlusPyError: PlusPyError: can't load AsyncGameOfLifeDistributed.tla
One of the TLA+ modules I have written uses 'STRING' which Pluspy declares is an 'unknown identifier'. Looking at pluspy.py, it seems like 'STRING' is not part of the ReservedWords list. Would it be possible to add support for STRING?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.