B-OCL is a tool designed to parse and evaluate the OCL constraints designed on BESSER models. It is a python based implementation, that utilises parser and listener generated with the ANTLR4 grammer.
BESSER is a low-modeling low-code open-source platform built on top of our Python-based personal interpretation of a "Universal Modeling Language"
We have tested B-OCL with python 3.9+. We recommend creating a virtual environment using venv <https://docs.python.org/3/tutorial/venv.html>
, or
conda <https://docs.conda.io/en/latest/>
).
Dependencies
B-OCL depends on BESSER for parsing the OCL constraints and providing a concrete syntax tree (CST) to evaluate. The latest stable version of BESSER is available in the Python Package Index (PyPi) and can be installed using
$ pip install besser
Stable version of B-OCL interpreter can be installed via
$ pip install bocl
To obtain the full code, including examples and tests, you can clone the git repository.
$ git clone https://github.com/BESSER-PEARL/b-ocl-Interpreter
$ cd b-ocl-Interpreter
To install the reqs please run the following commands in virtual environment (recommended)
$ pip install -r requirements.txt
We encourage contributions from the community and any comment is welcome!
If you are interested in contributing to this project, please read the CONTRIBUTING.md file.
At BESSER, our commitment is centered on establishing and maintaining development environments that are welcoming, inclusive, safe and free from all forms of harassment. All participants are expected to voluntarily respect and support our Code of Conduct.
The development of this project follows the governance rules described in the GOVERNANCE.md document.
You can reach us at: info@besser-pearl.org
Website: https://besser-pearl.github.io/website/
More details about B-OCL can be found here https://b-ocl-interpreter.readthedocs.io/en/latest/
This project is licensed under the MIT license.