Lawtext core references / core/src/parser/std/util
core/src/parser/std/util
Type Aliases
ValueRule
ValueRule<
TValue> =Rule<VirtualLine[],TValue,Env,Empty>
Defined in: core/src/parser/std/util.ts:12
Type Parameters
TValue
TValue
WithErrorRule
WithErrorRule<
TValue> =Rule<VirtualLine[],WithErrorValue<TValue>,Env,Empty>
Defined in: core/src/parser/std/util.ts:14
Type Parameters
TValue
TValue
WithErrorValue
WithErrorValue<
TValue> =object
Defined in: core/src/parser/std/util.ts:13
Type Parameters
TValue
TValue
Properties
errors
errors:
ErrorMessage[]
Defined in: core/src/parser/std/util.ts:13
value
value:
TValue
Defined in: core/src/parser/std/util.ts:13
Variables
$blankLine
const$blankLine:Rule<VirtualLine[], {line:BlankLine;type:BNK;virtualIndentDepth:number;virtualRange: [number,number]; },Env,Empty>
Defined in: core/src/parser/std/util.ts:40
$DEDENT
Defined in: core/src/parser/std/util.ts:28
$INDENT
Defined in: core/src/parser/std/util.ts:16
$indentBlock
const$indentBlock:ValueRule<VirtualLine[]>
Defined in: core/src/parser/std/util.ts:44
$optBNK_DEDENT
const$optBNK_DEDENT:ValueRule<[...PhysicalLine[],Dedent]>
Defined in: core/src/parser/std/util.ts:32
$optBNK_INDENT
const$optBNK_INDENT:ValueRule<[...PhysicalLine[],Indent]>
Defined in: core/src/parser/std/util.ts:20
captionControl
constcaptionControl:":caption:"=":caption:"
Defined in: core/src/parser/std/util.ts:231
Functions
isSingleParentheses()
isSingleParentheses(
line):__Parentheses|null
Defined in: core/src/parser/std/util.ts:233
Parameters
line
SentencesArray | VirtualLine | Line
Returns
__Parentheses | null
makeDoubleIndentBlockWithCaptureRule()
makeDoubleIndentBlockWithCaptureRule<
TValue>(ruleName,ruleRepeatedOneOrMore):Rule<VirtualLine[],WithErrorValue<TValue[]>,Env,Omit<Env&Omit<Env&Empty&object&object, keyofEnv>, keyofEnv>>
Defined in: core/src/parser/std/util.ts:141
Type Parameters
TValue
TValue
Parameters
ruleName
string
ruleRepeatedOneOrMore
Rule<VirtualLine[], TValue, Env, Empty>
Returns
Rule<VirtualLine[], WithErrorValue<TValue[]>, Env, Omit<Env & Omit<Env & Empty & object & object, keyof Env>, keyof Env>>
makeIndentBlockWithCaptureRule()
makeIndentBlockWithCaptureRule<
TValue>(ruleName,ruleRepeatedOneOrMore):Rule<VirtualLine[],WithErrorValue<TValue[]>,Env,Omit<Env&Omit<Env&Empty&object, keyofEnv>, keyofEnv>>
Defined in: core/src/parser/std/util.ts:67
Type Parameters
TValue
TValue
Parameters
ruleName
string
ruleRepeatedOneOrMore
Rule<VirtualLine[], TValue, Env, Empty>
Returns
Rule<VirtualLine[], WithErrorValue<TValue[]>, Env, Omit<Env & Omit<Env & Empty & object, keyof Env>, keyof Env>>