lawref.a3
Normative A3 parameter/table analyzer and CLIR lowerer.
The module deliberately stops at CLIR. It never evaluates a parameter JSON or
decision-table JSON: generated helper FunctionDecl/Rule nodes are fed to
the ordinary evaluator. Rust law-a3 is a byte-differential port of this
file, not an alternative semantics.
Attributes
| Name | Description |
|---|---|
MISSING_PARAMETER | No description. |
NO_DECISION | No description. |
OK | No description. |
PARAM_FEATURE | No description. |
RESULT | No description. |
TABLE_FEATURE | No description. |
Classes
| Name | Description |
|---|---|
Segment | No description. |
Functions
| Name | Description |
|---|---|
lower_parameter | No description. |
lower_source | No description. |
lower_table | No description. |
semantic_hash | No description. |
semantic_projection | No description. |
validate_parameter | No description. |
validate_table | No description. |
MISSING_PARAMETERattributemodule attribute#
MISSING_PARAMETER = 'urn:law:a3#MissingParameterValue'NO_DECISIONattributemodule attribute#
NO_DECISION = 'urn:law:a3#NoDecision'OKattributemodule attribute#
OK = 'urn:law:a3#Result/Ok'PARAM_FEATUREattributemodule attribute#
PARAM_FEATURE = 'law.params/0.1'RESULTattributemodule attribute#
RESULT = 'urn:law:std#Result'TABLE_FEATUREattributemodule attribute#
TABLE_FEATURE = 'law.decision/0.1'Segmentclassdataclass#
class Segment(lower: Any | None, lower_inc: bool, upper: Any | None, upper_inc: bool)lower_parameterfunction#
def lower_parameter(source: dict, package: str, uri: str = 'memory:parameter') -> dictlower_sourcefunction#
def lower_source(source: dict, package: str, uri: str, enums: dict[str, list[str]] | None = None) -> dictlower_tablefunction#
def lower_table(source: dict, package: str, uri: str = 'memory:table', enums: dict[str, list[str]] | None = None) -> dictsemantic_hashfunction#
def semantic_hash(source: dict) -> strsemantic_projectionfunction#
def semantic_projection(source: dict) -> dictvalidate_parameterfunction#
def validate_parameter(source: dict, uri: str = 'memory:parameter') -> list[dict]validate_tablefunction#
def validate_table(source: dict, uri: str = 'memory:table', enums: dict[str, list[str]] | None = None) -> list[dict]Documentation for Arxo. Writings — blog.arxo.io.
Anonymous visit counts on stats.arxo.io, no cookies.