| start: instruction* |
| |
| instruction: load_xml|all_endpoint_rule|specific_endpoint_rule |
| |
| load_xml: "load" ESCAPED_STRING ";" |
| |
| all_endpoint_rule: "all" "endpoints" "{" required_global_attribute* "}" |
| |
| specific_endpoint_rule: "endpoint" integer "{" required_server_cluster* "}" |
| |
| required_global_attribute: "require" "global" "attribute" id "=" integer ";" |
| |
| required_server_cluster: "require" "server" "cluster" (id|POSITIVE_INTEGER|HEX_INTEGER) ";" |
| |
| integer: positive_integer | negative_integer |
| |
| positive_integer: POSITIVE_INTEGER | HEX_INTEGER |
| negative_integer: "-" positive_integer |
| |
| id: ID |
| |
| POSITIVE_INTEGER: /\d+/ |
| HEX_INTEGER: /0x[A-Fa-f0-9]+/ |
| ID: /[a-zA-Z_][a-zA-Z0-9_]*/ |
| |
| %import common.ESCAPED_STRING |
| %import common.WS |
| %import common.C_COMMENT |
| %import common.CPP_COMMENT |
| %ignore WS |
| %ignore C_COMMENT |
| %ignore CPP_COMMENT |