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.0.tar.gz (31.1 kB view details)

Uploaded Source

File details

Details for the file pyrsl-0.4.0.tar.gz.

File metadata

  • Download URL: pyrsl-0.4.0.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyrsl-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0680a9927f970d6a982edcfb451e0ba6312e87a678f450214166974e1322efeb
MD5 6e6016351ea1c53d35bf10dd3c172aa7
BLAKE2b-256 737cd8b255ddb7a1908124f80b259f44d8248ddd4d72fcbfdd66e39d227a70de

See more details on using hashes here.

Supported by

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