Library
core
modules
Core Src Parser Std Rules Law

Lawtext core references / core/src/parser/std/rules/$law

Module: core/src/parser/std/rules/$law

Table of contents

References

Variables

Functions

References

default

Renames and re-exports $law

Variables

$enactStatement

Const $enactStatement: WithErrorRule<EnactStatement>

Defined in

core/src/parser/std/rules/$law.ts:220 (opens in a new tab)


$law

Const $law: WithErrorRule<Law>

The parser rule for std.Law. Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.

Defined in

core/src/parser/std/rules/$law.ts:264 (opens in a new tab)


$lawTitleLines

Const $lawTitleLines: WithErrorRule<{ lawNameLine: VirtualLine & { type: OTH | CAP } ; lawNumLine: VirtualLine & { type: OTH | CAP } | null }>

Defined in

core/src/parser/std/rules/$law.ts:142 (opens in a new tab)


enactStatementControl

Const enactStatementControl: ":enact-statement:"

Defined in

core/src/parser/std/rules/$law.ts:190 (opens in a new tab)

Functions

enactStatementToLines

enactStatementToLines(enactStatement, indentTexts): Line[]

Parameters

NameType
enactStatementEnactStatement
indentTextsstring[]

Returns

Line[]

Defined in

core/src/parser/std/rules/$law.ts:192 (opens in a new tab)


lawToLines

lawToLines(law, indentTexts): Line[]

The renderer for std.Law. Please see the source code for the detailed syntax, and the test code (opens in a new tab) for examples.

Parameters

NameType
lawLaw
indentTextsstring[]

Returns

Line[]

Defined in

core/src/parser/std/rules/$law.ts:24 (opens in a new tab)