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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rapidchecker-0.1.2.tar.gz
Algorithm Hash digest
SHA256 21a9c92426e017fe8f709cade5ae505d3e22b9673efff91d944e3e5921ded1d5
MD5 732b4ac3e8c5054598de85b6d772e3e8
BLAKE2b-256 2f3e8d12c94bfbe2604b6873f4e7e3fc8d006120120366fbfb0afc752320e7a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rapidchecker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5db2860eb00b7cd2101b284b3ce785e8366b0b74539f226ad614a3a493956ce
MD5 de102594f62907245b0304d435c0c579
BLAKE2b-256 8a3c7f297948b34f0d8ec9fb88f87b2cb5821d1c36573234cf22e657632942cf

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