Skip to main content

Interpreter for the Rule Specification Language (RSL)

Project description

pyrsl is an interpreter for a language called RSL (Rule Specification Language). RSL is commonly used as a template language to express transformations from a BridgePoint model into a textual representation, e.g. when writing model compilers or when generating html documentation from a model.

Dependencies

pyrsl depend on pyxtuml, see its github page for install instructions.

Installation

Install from pypi:

$ python -m pip install pyrsl

Or fetch the source from github:

$ git clone https://github.com/john-tornblom/pyrsl.git
$ cd pyrsl
$ python setup.py install

Optionally, you can also execute a test suite:

$ python setup.py test

Windows EXEs

Windows users may obtain self-contained EXEs from appveyor:

  • legacy_cli.exe - legacy command line interface.

  • gen_erate.exe - pythonic command line interface with a few additional features.

Usage

The command line usage is as follows:

$ python -m rsl.gen_erate [options] script.arc

where script.arc is an RSL template, also known as a archetype. [options] may be a combination of the following:

--version               show program's version number and exit
--help, -h              show this help message and exit
--import=PATH, -i PATH  import model information from PATH
--include=PATH, -I PATH
                        add PATH to list of dirs to search for include files
--emit=WHEN, -e WHEN    choose when to emit (never, change, always)
--force, -f             make read-only emit files writable
--diff=PATH, -d PATH    save a diff of all emits to PATH
--verbosity, -v         increase debug logging level

Language Reference

See BridgePoint UML Suite Rule Specification Language.

Reporting bugs

If you encounter problems with pyrsl, please file a github issue. If you plan on sending pull request which affect more than a few lines of code, please file an issue before you start to work on you changes. This will allow us to discuss the solution properly before you commit time and effort.

License

pyrsl is licensed under the GPLv3, see LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrsl-0.4.2.tar.gz (32.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page