Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

F TD2000 DOCUMENTS 16 / ford2004 parsing expression grammar ordered choice predicate recognition

Recognize bounded strings under complete well-formed PEGs with ordered choice, syntactic predicates and repetition, retaining the complete deterministic recognition tree.. Compare the complete typed result SHA256.

POST https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-16/ford2004-parsing-expression-grammar-ordered-choice-predicate-recognition

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "artifact"
  ],
  "properties": {
    "artifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "peg"
      ],
      "properties": {
        "peg": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "data",
            "claim"
          ],
          "properties": {
            "data": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "text",
                "expressions",
                "rules",
                "start"
              ],
              "properties": {
                "text": {
                  "type": "string",
                  "maxLength": 1024
                },
                "expressions": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          },
                          "kind": {
                            "enum": [
                              "empty",
                              "any"
                            ]
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "text"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          },
                          "kind": {
                            "const": "literal"
                          },
                          "text": {
                            "type": "string",
                            "maxLength": 128
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "characters",
                          "inverted"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          },
                          "kind": {
                            "const": "set"
                          },
                          "characters": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "inverted": {
                            "type": "boolean"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "name"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          },
                          "kind": {
                            "const": "ref"
                          },
                          "name": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "expressions"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          },
                          "kind": {
                            "const": "sequence"
                          },
                          "expressions": {
                            "type": "array",
                            "items": {
                              "$ref": "#/properties/artifact/%24defs/a"
                            },
                            "maxItems": 48
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "expressions"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          },
                          "kind": {
                            "const": "choice"
                          },
                          "expressions": {
                            "type": "array",
                            "items": {
                              "$ref": "#/properties/artifact/%24defs/a"
                            },
                            "minItems": 2,
                            "maxItems": 16
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "expression"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          },
                          "kind": {
                            "enum": [
                              "star",
                              "plus",
                              "optional",
                              "and",
                              "not"
                            ]
                          },
                          "expression": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          }
                        }
                      }
                    ]
                  },
                  "minItems": 1,
                  "maxItems": 96
                },
                "rules": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "name",
                      "expression"
                    ],
                    "properties": {
                      "name": {
                        "$ref": "#/properties/artifact/%24defs/a"
                      },
                      "expression": {
                        "$ref": "#/properties/artifact/%24defs/a"
                      }
                    }
                  },
                  "minItems": 1,
                  "maxItems": 16
                },
                "start": {
                  "$ref": "#/properties/artifact/%24defs/a"
                }
              }
            },
            "claim": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 64,
              "maxLength": 64,
              "pattern": "^[0-9a-f]{64}$"
            }
          }
        }
      },
      "$defs": {
        "a": {
          "type": "string",
          "minLength": 1,
          "maxLength": 48,
          "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$",
          "not": {
            "type": "string",
            "pattern": "[\\r\\n

]"
          }
        }
      }
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 20:49 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →