Comments (2)
There is no specific documentation on how to access the AST.
The ANTLR4 AST is translated into an internal tree data structure (see rtamt/syntax/node
).
There are abstract visitors for both the LTL and STL fragments of the AST (see rtamt/syntax/visitor
). Your visitor should implement one of the visitor "interfaces".
If you would like to make transformations of the AST tree, I suggest to look how the pastification procedure is implemented, as it translates the AST of a bounded-future STL formula into an AST of its equisatisfiable pure past AST (see rtamt/pastifier
).
I hope this helps.
from rtamt.
Thanks for the information!
from rtamt.
Related Issues (20)
- Update ANTLR version HOT 5
- rtamt/tests/python/ast/test_ast_visitor.py HOT 1
- rtamt/tests/python/ast/test_stl_ast_parser.py HOT 1
- Handling unit with Fraction HOT 3
- IASTL refactoring HOT 2
- PyPi package installs antlr version for python 2 and 3
- Rename from evaluator to interpreter HOT 3
- naming of LTLPastifyException HOT 1
- test_division test case difference between Python and C++ HOT 2
- exception refactoring HOT 2
- Until operator showing key error HOT 1
- ValueError: max() arg is an empty sequence when eventually[time] too long HOT 1
- RTAMT AST data structure document
- introduction of sub_specs changes robustness traces HOT 1
- Running RTAMT fails due to incorrect antlr version HOT 1
- Please document the Python API HOT 2
- RFE: should there be a more obvious error message when the value at t=0 is not provided?
- StlDenseTimeSpecification semantic bug? HOT 1
- Typos in README.md "Future timed temporal operators" sematics?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtamt.