Skip to main content

Grammar and format checker for ABB RAPID code.

Project description

rapidchecker

Grammar and format checker for ABB Rapid code.

  • 🔎 Checks ABB RAPID code (.sys modules) for grammar errors and formatting issues.
  • 🦾 Tested with RobotWare 5 code.
  • 🐍 Powered by Python and pyparsing.

Getting started

Install with pip install rapidchecker

Then check a RAPID module (or a directory containing modules) by running

python -m rapidchecker <path-to-file-or-dir>

If any grammar or format errors are found, they are printed to stdout and the command exits with exitcode 1.

Features

rapidchecker checks for:

  • Code that violates the ABB RAPID grammar.
  • Bad indentation. Assumes indentation of 4 spaces.
  • Lowercase keywords (if instead of IF, module instead of MODULE etc)

To be added

  • Checks for procedure, variable, function and signal names (enforce camel_case or snakeCase).

References

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

rapidchecker-0.1.3.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rapidchecker-0.1.3-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file rapidchecker-0.1.3.tar.gz.

File metadata

  • Download URL: rapidchecker-0.1.3.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.4

File hashes

Hashes for rapidchecker-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6c2a8e9636a9e53200f6a9951fa964ebd4b48ad9e929416d98d30a96da0e1a15
MD5 9aadbce4c64687b5e05bc300c71d728f
BLAKE2b-256 163a9a99e64d77eab6c9c6af3edf8d9327644f191f5d086aef7dc2af65581ea0

See more details on using hashes here.

File details

Details for the file rapidchecker-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for rapidchecker-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0ce12ffa7a3f8c68f75a76ce77b4c924c26a55d31adf8b3a03c5d43f0a3a3ea0
MD5 83ad80bd3759389c6158d3a598c3e61b
BLAKE2b-256 e7a7d4ec63192a9c78774ea2e5d72150a30ef1b2c8b4e795ff2f9e8bab963da3

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