Skip to Content

Lawtext core references


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

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

Variables

$paragraphItemLine

const $paragraphItemLine: WithErrorRule<ParagraphItemLine>

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:75 

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  for examples.


$paragraphItemRanges

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

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:16 


$stdItem1Range

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

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:19 


$stdItem2Range

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

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:20 


$stdItem3Range

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

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:21 


$stdItemRange

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

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:18 


$stdParagraphRange

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

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:17 


paragraphItemTitleMatch

const paragraphItemTitleMatch: object

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:31 

Type Declaration

Item()

readonly Item: (target) => MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env> = $stdItemRange

Parameters
target

string

Returns

MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>

Paragraph()

readonly Paragraph: (target) => MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env> = $stdParagraphRange

Parameters
target

string

Returns

MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>

Subitem1()

readonly Subitem1: (target) => MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env> = $stdItem1Range

Parameters
target

string

Returns

MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>

Subitem2()

readonly Subitem2: (target) => MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env> = $stdItem2Range

Parameters
target

string

Returns

MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>

Subitem3()

readonly Subitem3: (target) => MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env> = $stdItem3Range

Parameters
target

string

Returns

MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>


paragraphItemTitleRule

const paragraphItemTitleRule: object

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:23 

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


unknownParagraphItemTitleMatch()

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

Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:54 

Parameters

target

string

Returns

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

References

default

Renames and re-exports $paragraphItemLine

Last updated on
© 2017-2026 yamachi