Library
core
src
parser
cst
rules
$paragraphItemLine
Readme

Lawtext core referencesDocs


Lawtext core references / core/src/parser/cst/rules/$paragraphItemLine

core/src/parser/cst/rules/$paragraphItemLine

References

default

Renames and re-exports $paragraphItemLine

Variables

$paragraphItemLine

const $paragraphItemLine: WithErrorRule<ParagraphItemLine>

The parser rule for ParagraphItemLine that represents a first line of a paragraph, item, and subitem. 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/cst/rules/$paragraphItemLine.ts:75 (opens in a new tab)


$paragraphItemRanges

$paragraphItemRanges: WithErrorRule<[object, object][]>

Defined in

core/src/parser/cst/rules/$paragraphItemLine.ts:16 (opens in a new tab)


$stdItem1Range

$stdItem1Range: WithErrorRule<[string, string][]>

Defined in

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


$stdItem2Range

$stdItem2Range: WithErrorRule<[string, string][]>

Defined in

core/src/parser/cst/rules/$paragraphItemLine.ts:20 (opens in a new tab)


$stdItem3Range

$stdItem3Range: WithErrorRule<[string, string][]>

Defined in

core/src/parser/cst/rules/$paragraphItemLine.ts:21 (opens in a new tab)


$stdItemRange

$stdItemRange: WithErrorRule<[string, string][]>

Defined in

core/src/parser/cst/rules/$paragraphItemLine.ts:18 (opens in a new tab)


$stdParagraphRange

$stdParagraphRange: WithErrorRule<[string, string][]>

Defined in

core/src/parser/cst/rules/$paragraphItemLine.ts:17 (opens in a new tab)


paragraphItemTitleMatch

const paragraphItemTitleMatch: object

Type declaration

Item()

readonly Item: (target) => MatchResult<object, Env> = $stdItemRange

Parameters

target: string

Returns

MatchResult<object, Env>

errors

errors: ErrorMessage[]

value

value: [string, string][]

Paragraph()

readonly Paragraph: (target) => MatchResult<object, Env> = $stdParagraphRange

Parameters

target: string

Returns

MatchResult<object, Env>

errors

errors: ErrorMessage[]

value

value: [string, string][]

Subitem1()

readonly Subitem1: (target) => MatchResult<object, Env> = $stdItem1Range

Parameters

target: string

Returns

MatchResult<object, Env>

errors

errors: ErrorMessage[]

value

value: [string, string][]

Subitem2()

readonly Subitem2: (target) => MatchResult<object, Env> = $stdItem2Range

Parameters

target: string

Returns

MatchResult<object, Env>

errors

errors: ErrorMessage[]

value

value: [string, string][]

Subitem3()

readonly Subitem3: (target) => MatchResult<object, Env> = $stdItem3Range

Parameters

target: string

Returns

MatchResult<object, Env>

errors

errors: ErrorMessage[]

value

value: [string, string][]

Defined in

core/src/parser/cst/rules/$paragraphItemLine.ts:31 (opens in a new tab)


paragraphItemTitleRule

const paragraphItemTitleRule: object

Type declaration

Item

readonly Item: WithErrorRule<[string, string][]> = $stdItemRange

Paragraph

readonly Paragraph: WithErrorRule<[string, string][]> = $stdParagraphRange

Subitem1

readonly Subitem1: WithErrorRule<[string, string][]> = $stdItem1Range

Subitem2

readonly Subitem2: WithErrorRule<[string, string][]> = $stdItem2Range

Subitem3

readonly Subitem3: WithErrorRule<[string, string][]> = $stdItem3Range

Defined in

core/src/parser/cst/rules/$paragraphItemLine.ts:23 (opens in a new tab)

Functions

unknownParagraphItemTitleMatch()

unknownParagraphItemTitleMatch(target): MatchSuccess<object, Env & Empty> | object

Parameters

target: string

Returns

MatchSuccess<object, Env & Empty> | object

Defined in

core/src/parser/cst/rules/$paragraphItemLine.ts:56 (opens in a new tab)