Skip to content

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

NameDescription
MISSING_PARAMETERNo description.
NO_DECISIONNo description.
OKNo description.
PARAM_FEATURENo description.
RESULTNo description.
TABLE_FEATURENo description.

Classes

NameDescription
SegmentNo description.

Functions

NameDescription
lower_parameterNo description.
lower_sourceNo description.
lower_tableNo description.
semantic_hashNo description.
semantic_projectionNo description.
validate_parameterNo description.
validate_tableNo 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)

lowerattributeinstance attribute#

lower: Any | None

lower_incattributeinstance attribute#

lower_inc: bool

upperattributeinstance attribute#

upper: Any | None

upper_incattributeinstance attribute#

upper_inc: bool

lower_parameterfunction#

def lower_parameter(source: dict, package: str, uri: str = 'memory:parameter') -> dict

lower_sourcefunction#

def lower_source(source: dict, package: str, uri: str, enums: dict[str, list[str]] | None = None) -> dict

lower_tablefunction#

def lower_table(source: dict, package: str, uri: str = 'memory:table', enums: dict[str, list[str]] | None = None) -> dict

semantic_hashfunction#

def semantic_hash(source: dict) -> str

semantic_projectionfunction#

def semantic_projection(source: dict) -> dict

validate_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.