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 (opens in a new tab)
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.
$paragraphItemRanges
$paragraphItemRanges:
WithErrorRule<[{errors:ErrorMessage[];value:string; }, {errors:ErrorMessage[];value:string; }][]>
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
constparagraphItemTitleMatch:object
Defined in: core/src/parser/cst/rules/$paragraphItemLine.ts:31 (opens in a new tab)
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 (opens in a new tab)
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
Functions
unknownParagraphItemTitleMatch()
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:56 (opens in a new tab)
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