Skip to Content

Lawtext core references


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

core/src/parser/std/rules/$list

Variables

$list

const $list: WithErrorRule<List>

Defined in: core/src/parser/std/rules/$list.ts:177 

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


$sublist1

const $sublist1: WithErrorRule<Sublist1>

Defined in: core/src/parser/std/rules/$list.ts:172 

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


$sublist2

const $sublist2: WithErrorRule<Sublist2>

Defined in: core/src/parser/std/rules/$list.ts:167 

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


$sublist3

const $sublist3: WithErrorRule<Sublist3>

Defined in: core/src/parser/std/rules/$list.ts:162 

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

Functions

listOrSublistToLines()

listOrSublistToLines(listOrSublist, indentTexts): Line[]

Defined in: core/src/parser/std/rules/$list.ts:18 

The renderer for List or sublist (ListOrSublist). Please see the source code for the detailed syntax, and the test code  for examples.

Parameters

listOrSublist

ListOrSublist

indentTexts

string[]

Returns

Line[]


makelistOrSublistRule()

makelistOrSublistRule<TTag, TRet>(ruleName, tag, nextSublistRule): WithErrorRule<TRet>

Defined in: core/src/parser/std/rules/$list.ts:56 

Type Parameters

TTag

TTag extends "List" | "Sublist1" | "Sublist2" | "Sublist3"

TRet

TRet = TTag extends "List" ? List : TTag extends "Sublist1" ? Sublist1 : TTag extends "Sublist2" ? Sublist2 : TTag extends "Sublist3" ? Sublist3 : never

Parameters

ruleName

string

tag

TTag

nextSublistRule

WithErrorRule<Diff<ListOrSublist, List>> | null

Returns

WithErrorRule<TRet>

Last updated on
© 2017-2026 yamachi