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

  • Add package to pip.
  • 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.0.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.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rapidchecker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b956320d87198158f887740fb7f39e86cb86154314d8e56dcb9d582c44924df9
MD5 94a0ba0a3bcbeb9173a7214e76b17b45
BLAKE2b-256 7bbf57d937e4303b4626d7af8d48bed87bfecffe1b45352aa2a3cba3e0008afe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rapidchecker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 024c8e6d33bc56d95318e694db83559f601ed91368fb335b0daf8c7e3776c78e
MD5 bb1160629e9ebf4382d94655431fe60a
BLAKE2b-256 ed3ccffc5189246efe2fb87a3450b3ce7950e81de9665b0b231064e110f63a57

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