Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

F TD2000 DOCUMENTS 15 / posix2024 awk record field rebuild pattern action program

Replay POSIX AWK scalar record/field programs and compare the full-result SHA256.

POST https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-15/posix2024-awk-record-field-rebuild-pattern-action-program

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": [
        "awk"
      ],
      "properties": {
        "awk": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "data",
            "claim"
          ],
          "properties": {
            "data": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "records",
                "fs",
                "ofs",
                "ors",
                "variables",
                "expressions",
                "statements",
                "rules"
              ],
              "properties": {
                "records": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "maxItems": 32
                },
                "fs": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1
                },
                "ofs": {
                  "type": "string",
                  "maxLength": 64
                },
                "ors": {
                  "type": "string",
                  "maxLength": 64
                },
                "variables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "name",
                      "value"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32,
                        "pattern": "^[a-z][a-z0-9_]*$"
                      },
                      "value": {
                        "$ref": "#/properties/artifact/%24defs/a"
                      }
                    }
                  },
                  "maxItems": 32
                },
                "expressions": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "value"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "literal"
                          },
                          "value": {
                            "$ref": "#/properties/artifact/%24defs/a"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "name"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "variable"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32,
                            "pattern": "^[a-z][a-z0-9_]*$"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "name"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "special"
                          },
                          "name": {
                            "enum": [
                              "FS",
                              "OFS",
                              "ORS",
                              "NF",
                              "NR",
                              "FNR"
                            ]
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "index"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "field"
                          },
                          "index": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 64
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "operation",
                          "argument"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "unary"
                          },
                          "operation": {
                            "enum": [
                              "number",
                              "string",
                              "negate",
                              "length"
                            ]
                          },
                          "argument": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "operation",
                          "left",
                          "right"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "binary"
                          },
                          "operation": {
                            "enum": [
                              "add",
                              "subtract",
                              "multiply",
                              "divide",
                              "remainder",
                              "power",
                              "concat",
                              "num_eq",
                              "num_ne",
                              "num_lt",
                              "num_le",
                              "num_gt",
                              "num_ge",
                              "str_eq",
                              "str_ne",
                              "str_lt",
                              "str_le",
                              "str_gt",
                              "str_ge"
                            ]
                          },
                          "left": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "right": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          }
                        }
                      }
                    ]
                  },
                  "maxItems": 96
                },
                "statements": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "name",
                          "expression"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "set_variable"
                          },
                          "name": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32,
                                "pattern": "^[a-z][a-z0-9_]*$"
                              },
                              {
                                "enum": [
                                  "FS",
                                  "OFS",
                                  "ORS"
                                ]
                              }
                            ]
                          },
                          "expression": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "index",
                          "expression"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "set_field"
                          },
                          "index": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 64
                          },
                          "expression": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "expression"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "set_nf"
                          },
                          "expression": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "expressions"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "print"
                          },
                          "expressions": {
                            "type": "array",
                            "items": {
                              "$ref": "#/properties/artifact/%24defs/d"
                            },
                            "maxItems": 16
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "condition",
                          "then",
                          "otherwise"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "if"
                          },
                          "condition": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "then": {
                            "$ref": "#/properties/artifact/%24defs/e"
                          },
                          "otherwise": {
                            "$ref": "#/properties/artifact/%24defs/e"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "next"
                          }
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "kind",
                          "code"
                        ],
                        "properties": {
                          "id": {
                            "$ref": "#/properties/artifact/%24defs/d"
                          },
                          "kind": {
                            "const": "exit"
                          },
                          "code": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 48,
                            "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$"
                          }
                        }
                      }
                    ]
                  },
                  "maxItems": 96
                },
                "rules": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "phase",
                      "condition",
                      "actions"
                    ],
                    "properties": {
                      "phase": {
                        "enum": [
                          "begin",
                          "record",
                          "end"
                        ]
                      },
                      "condition": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "minLength": 1,
                        "maxLength": 48,
                        "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$"
                      },
                      "actions": {
                        "$ref": "#/properties/artifact/%24defs/e"
                      }
                    }
                  },
                  "maxItems": 32
                }
              }
            },
            "claim": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 64,
              "maxLength": 64,
              "pattern": "^[0-9a-f]{64}$"
            }
          }
        }
      },
      "$defs": {
        "a": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "value"
              ],
              "properties": {
                "kind": {
                  "const": "number"
                },
                "value": {
                  "type": "number",
                  "minimum": -1000000000,
                  "maximum": 1000000000
                }
              }
            },
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "value"
              ],
              "properties": {
                "kind": {
                  "const": "string"
                },
                "value": {
                  "type": "string",
                  "maxLength": 1024
                }
              }
            }
          ]
        },
        "d": {
          "type": "string",
          "minLength": 1,
          "maxLength": 48,
          "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$"
        },
        "e": {
          "type": "array",
          "items": {
            "$ref": "#/properties/artifact/%24defs/d"
          },
          "maxItems": 32
        }
      }
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

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

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →