Lawtext core references / core/src/parser/cst/rules/$paragraphItemLine
Module: core/src/parser/cst/rules/$paragraphItemLine
Table of contents
References
Variables
- $paragraphItemLine
- $paragraphItemRanges
- $stdItem1Range
- $stdItem2Range
- $stdItem3Range
- $stdItemRange
- $stdParagraphRange
- paragraphItemTitleMatch
- paragraphItemTitleRule
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
Name | Type |
---|---|
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
Name | Type |
---|---|
Item | WithErrorRule <[string , string ][]> |
Paragraph | WithErrorRule <[string , string ][]> |
Subitem1 | WithErrorRule <[string , string ][]> |
Subitem2 | WithErrorRule <[string , string ][]> |
Subitem3 | WithErrorRule <[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
Name | Type |
---|---|
target | string |
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)