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.4.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.4-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rapidchecker-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2334bf6a96d3219fe11057b303eb8577d82d806507c3f802a176efebad2625c7
MD5 75dd4b74c7a61cd263e65ea6be1c7854
BLAKE2b-256 594cff0e8a01c622e500c9d6fb841360b3dc2b9d8c13b066a065dad16327eece

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rapidchecker-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 160ceab058891601434f2e4c39d3efed361f5d842bdebf18d30e5fd167582374
MD5 49832f1688f6a881ad1b3749419ad688
BLAKE2b-256 972d478395da5a101bc9a29342d79946c277b7e092c897cf47f4a98011cb8e16

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