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)
- 🦾 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 (
ifinstead ofIF,moduleinstead ofMODULEetc) - 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rapidchecker-0.1.5.tar.gz.
File metadata
- Download URL: rapidchecker-0.1.5.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9db78b0a8ca72ffb1d0d7c86df98b3deaacda58f4ca74b8c82e2b86e7c6b96c1
|
|
| MD5 |
2040f8d622f0794ea0a296a177bf8703
|
|
| BLAKE2b-256 |
70d04b8b804d7bf462a4348399d6dde3571416bc749253efcff30b031a47d886
|
File details
Details for the file rapidchecker-0.1.5-py3-none-any.whl.
File metadata
- Download URL: rapidchecker-0.1.5-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c143426f15a8dd857115e46377da6a5f484efac5603d483c414506e2230dcbe6
|
|
| MD5 |
f29d4167adee4cbd9aa775defc0ea2ce
|
|
| BLAKE2b-256 |
9fb0aab6384ddf754c85ad127d758f0a30c0458edb71e47a456a5cf5734c16ec
|