-
Notifications
You must be signed in to change notification settings - Fork 7
PeeWee Script
michal-kapala edited this page May 10, 2024
·
4 revisions
A proprietary scripting language used in RDV data validation across RMC services:
Tokens are produced with:
tokens = strtok(script, PeeWee::Delimiters)where PeeWee::Delimiters contains:
-
(space) \n\t
| ID | Expression |
|---|---|
| 0 | (), [] (grouping expr) |
| 1 | a[b] |
| 2 | identifier, literal |
| 3 | a + b |
| 4 | a - b |
| 5 | a * b |
| 6 | a / b |
| 7 | a ^ b |
| 8 | a && b |
| 9 | a |
| 10 | a < b |
| 11 | a > b |
| 12 | a <= b |
| 13 | a >= b |
| 14 | a == b |
| 15 | a != b |
| 16 | a ! b |
| Id | Name | Value |
|---|---|---|
| 0 | BuiltInCurrentClass | Current class ID |
| 1 | BuiltInCurrentClassLevel | Level on the current class |
| 2 | BuiltInAssaultLevel | Assault class level |
| 3 | BuiltInReconLevel | Recon class level |
| 4 | BuiltInSpecialistLevel | Specialist class level |
| 5 | BuiltInAssaultClassID | 0 |
| 6 | BuiltInReconClassID | 1 |
| 7 | BuiltInSpecialistClassID | 2 |
| 8 | Unknown | invalid value |