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.1.tar.gz (22.4 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.1-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rapidchecker-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b1c09aa3079501b9ea5ab4319acc4099818f96303bd85958e02f82d8d59bbcc2
MD5 361331277a7c8c7a5460aff7bc10d759
BLAKE2b-256 2dd98b71b2bb832ec5522e6554c22a32efb8869e279f00d8179ea49c4ed7137d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rapidchecker-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba8caf761d54a6888cd6729417f5439b7a771093452af759e5dd2eb8dd736d50
MD5 61038b30fee682ca9adf3675ac15969b
BLAKE2b-256 90ddc93328b41c1d891362a8b235f8054ee819d279fe796ae2e93f77f634414a

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