Library
core
src
parser
std
rules
$law
Readme

Lawtext core referencesDocs


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

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

References

default

Renames and re-exports $law

Variables

$enactStatement

const $enactStatement: WithErrorRule<EnactStatement>

Defined in

core/src/parser/std/rules/$law.ts:222 (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:266 (opens in a new tab)


$lawTitleLines

const $lawTitleLines: WithErrorRule<object>

Type declaration

lawNameLine

lawNameLine: VirtualLine & object

Type declaration
type

type: OTH | CAP

lawNumLine

lawNumLine: VirtualLine & object | null

Defined in

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


enactStatementControl

const enactStatementControl: ":enact-statement:" = ":enact-statement:"

Defined in

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

Functions

enactStatementToLines()

enactStatementToLines(enactStatement, indentTexts): Line[]

Parameters

enactStatement: EnactStatement

indentTexts: string[]

Returns

Line[]

Defined in

core/src/parser/std/rules/$law.ts:194 (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

law: Law

indentTexts: string[]

Returns

Line[]

Defined in

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