Skip to Content

Lawtext core references


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

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

Variables

$enactStatement

const $enactStatement: WithErrorRule<EnactStatement>

Defined in: core/src/parser/std/rules/$law.ts:222 


$law

const $law: WithErrorRule<Law>

Defined in: core/src/parser/std/rules/$law.ts:266 

The parser rule for std.Law. Please see the source code for the detailed syntax, and the test code  for examples.


$lawTitleLines

const $lawTitleLines: WithErrorRule<{ lawNameLine: VirtualLine & object; lawNumLine: VirtualLine & object | null; }>

Defined in: core/src/parser/std/rules/$law.ts:144 


enactStatementControl

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

Defined in: core/src/parser/std/rules/$law.ts:192 

Functions

enactStatementToLines()

enactStatementToLines(enactStatement, indentTexts): Line[]

Defined in: core/src/parser/std/rules/$law.ts:194 

Parameters

enactStatement

EnactStatement

indentTexts

string[]

Returns

Line[]


lawToLines()

lawToLines(law, indentTexts): Line[]

Defined in: core/src/parser/std/rules/$law.ts:26 

The renderer for std.Law. Please see the source code for the detailed syntax, and the test code  for examples.

Parameters

law

Law

indentTexts

string[]

Returns

Line[]

References

default

Renames and re-exports $law

© 2017-2026 yamachi