Installation#

Basic Installation#

We have tested B-OCL with python 3.9+. We recommend creating a virtual environment (e.g. venv, conda).

Dependencies#

B-OCL includes its own ANTLR4-based grammar and parser for OCL constraints. It depends on BESSER only for the OCL metamodel types and structural model definitions. The latest stable version of BESSER is available in the Python Package Index (PyPi) and can be installed using

$ pip install besser

B-OCL Installation#

Stable version of B-OCL interpreter can be installed via

$ pip install bocl

Note

B-OCL-Interpreter is compatible with VScode. It can be easily installed using VSCode terminal

Building From Source#

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