Library
core
src
parser
std
rules
$tableStruct
Readme

Lawtext core referencesDocs


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

core/src/parser/std/rules/$tableStruct

References

default

Renames and re-exports $tableStruct

Variables

$tableStruct

const $tableStruct: WithErrorRule<TableStruct>

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

Functions

tableStructToLines()

tableStructToLines(tableStruct, indentTexts, options?): Line[]

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

Parameters

tableStruct: TableStruct

indentTexts: string[]

options?: tableStructToLinesOptions

Returns

Line[]

Defined in

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


tableToLines()

tableToLines(table, indentTexts): Line[]

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

Parameters

table: Table

indentTexts: string[]

Returns

Line[]

Defined in

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