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
constparagraphItemTitleMatch:object
Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:31
Type Declaration
Item()
readonlyItem: (target) =>MatchResult<{errors:ErrorMessage[];value: [string,string][]; },Env> =$stdItemRange
Parameters
target
string
Returns
MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>
Paragraph()
readonlyParagraph: (target) =>MatchResult<{errors:ErrorMessage[];value: [string,string][]; },Env> =$stdParagraphRange
Parameters
target
string
Returns
MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>
Subitem1()
readonlySubitem1: (target) =>MatchResult<{errors:ErrorMessage[];value: [string,string][]; },Env> =$stdItem1Range
Parameters
target
string
Returns
MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>
Subitem2()
readonlySubitem2: (target) =>MatchResult<{errors:ErrorMessage[];value: [string,string][]; },Env> =$stdItem2Range
Parameters
target
string
Returns
MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>
Subitem3()
readonlySubitem3: (target) =>MatchResult<{errors:ErrorMessage[];value: [string,string][]; },Env> =$stdItem3Range
Parameters
target
string
Returns
MatchResult<{ errors: ErrorMessage[]; value: [string, string][]; }, Env>
paragraphItemTitleRule
constparagraphItemTitleRule:object
Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:23
Type Declaration
Item
readonlyItem:WithErrorRule<[string,string][]> =$stdItemRange
Paragraph
readonlyParagraph:WithErrorRule<[string,string][]> =$stdParagraphRange
Subitem1
readonlySubitem1:WithErrorRule<[string,string][]> =$stdItem1Range
Subitem2
readonlySubitem2:WithErrorRule<[string,string][]> =$stdItem2Range
Subitem3
readonlySubitem3:WithErrorRule<[string,string][]> =$stdItem3Range
unknownParagraphItemTitleMatch()
constunknownParagraphItemTitleMatch: (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