Library
core
src
parser
std
rules
$preamble
Readme

Lawtext core referencesDocs


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

core/src/parser/std/rules/$preamble

References

default

Renames and re-exports $preamble

Variables

$preamble

const $preamble: WithErrorRule<Preamble>

The parser rule for std.Preamble. 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/$preamble.ts:68 (opens in a new tab)


preambleControl

const preambleControl: ":preamble:" = ":preamble:"

Defined in

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

Functions

preambleToLines()

preambleToLines(preamble, indentTexts): Line[]

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

Parameters

preamble: Preamble

indentTexts: string[]

Returns

Line[]

Defined in

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