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
constenactStatementControl:":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
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
indentTexts
string[]
Returns
Line[]
References
default
Renames and re-exports $law