Library
core
modules
Core Src Parser Cst Rules Paragraphitemline

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

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

Table of contents

References

Variables

Functions

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:74 (opens in a new tab)


$paragraphItemRanges

$paragraphItemRanges: WithErrorRule<[{ errors: ErrorMessage[] ; value: string }, { errors: ErrorMessage[] ; value: string }][]>

Defined in

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


$stdItem1Range

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

Defined in

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


$stdItem2Range

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

Defined in

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


$stdItem3Range

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

Defined in

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


$stdItemRange

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

Defined in

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


$stdParagraphRange

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

Defined in

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


paragraphItemTitleMatch

Const paragraphItemTitleMatch: Object

Type declaration

NameType
Item(target: string) => MatchResult<{ errors: ErrorMessage[] ; value: [string, string][] }, Env>
Paragraph(target: string) => MatchResult<{ errors: ErrorMessage[] ; value: [string, string][] }, Env>
Subitem1(target: string) => MatchResult<{ errors: ErrorMessage[] ; value: [string, string][] }, Env>
Subitem2(target: string) => MatchResult<{ errors: ErrorMessage[] ; value: [string, string][] }, Env>
Subitem3(target: string) => MatchResult<{ errors: ErrorMessage[] ; value: [string, string][] }, Env>

Defined in

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


paragraphItemTitleRule

Const paragraphItemTitleRule: Object

Type declaration

NameType
ItemWithErrorRule<[string, string][]>
ParagraphWithErrorRule<[string, string][]>
Subitem1WithErrorRule<[string, string][]>
Subitem2WithErrorRule<[string, string][]>
Subitem3WithErrorRule<[string, string][]>

Defined in

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

Functions

unknownParagraphItemTitleMatch

unknownParagraphItemTitleMatch(target): MatchSuccess<{ errors: ErrorMessage[] ; value: [{ value: string; errors: ErrorMessage[]; }, { value: string; errors: ErrorMessage[]; }][] }, Env & Empty> | { expected: string = "EOL"; offset: number ; ok: boolean = false; prevFail: null = null }

Parameters

NameType
targetstring

Returns

MatchSuccess<{ errors: ErrorMessage[] ; value: [{ value: string; errors: ErrorMessage[]; }, { value: string; errors: ErrorMessage[]; }][] }, Env & Empty> | { expected: string = "EOL"; offset: number ; ok: boolean = false; prevFail: null = null }

Defined in

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