Skip to content

OdysseasKr/rapidchecker

Repository files navigation

rapidchecker

Grammar and format checker for ABB Rapid code.

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

Features

rapidchecker checks for:

  • Code that violates the ABB RAPID grammar.
  • Bad indentation.
  • Lowercase keywords (if instead of IF, module instead of MODULE etc)
  • Trailing space.
  • Too many empty lines.

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.

Configuration

You can enable/disable different checks by adding a rapidchecker.toml file to the folder in which rapidchecker runs.

See rapidchecker.template.toml for reference.

References

About

Grammar and format checker for ABB RAPID code.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages