Lawtext core references / core/src/parser/std/util
core/src/parser/std/util
Type Aliases
ValueRule<TValue>
ValueRule<
TValue>:Rule<VirtualLine[],TValue,Env,Empty>
Defined in: core/src/parser/std/util.ts:12 (opens in a new tab)
Type Parameters
• TValue
WithErrorRule<TValue>
WithErrorRule<
TValue>:Rule<VirtualLine[],WithErrorValue<TValue>,Env,Empty>
Defined in: core/src/parser/std/util.ts:14 (opens in a new tab)
Type Parameters
• TValue
WithErrorValue<TValue>
WithErrorValue<
TValue>:object
Defined in: core/src/parser/std/util.ts:13 (opens in a new tab)
Type Parameters
• TValue
Type declaration
errors
errors:
ErrorMessage[]
value
value:
TValue
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 (opens in a new tab)
$DEDENT
Defined in: core/src/parser/std/util.ts:28 (opens in a new tab)
$INDENT
Defined in: core/src/parser/std/util.ts:16 (opens in a new tab)
$indentBlock
const$indentBlock:ValueRule<VirtualLine[]>
Defined in: core/src/parser/std/util.ts:44 (opens in a new tab)
$optBNK_DEDENT
const$optBNK_DEDENT:ValueRule<[...PhysicalLine[],Dedent]>
Defined in: core/src/parser/std/util.ts:32 (opens in a new tab)
$optBNK_INDENT
const$optBNK_INDENT:ValueRule<[...PhysicalLine[],Indent]>
Defined in: core/src/parser/std/util.ts:20 (opens in a new tab)
captionControl
constcaptionControl:":caption:"=":caption:"
Defined in: core/src/parser/std/util.ts:231 (opens in a new tab)
Functions
isSingleParentheses()
isSingleParentheses(
line):null|__Parentheses
Defined in: core/src/parser/std/util.ts:233 (opens in a new tab)
Parameters
line
SentencesArray | VirtualLine | Line
Returns
null | __Parentheses
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 (opens in a new tab)
Type Parameters
• 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 (opens in a new tab)
Type Parameters
• 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>>