Skip to content

@istock/command-parser / Exports

@istock/command-parser

Table of contents

Enumerations

Classes

Type Aliases

Variables

Type Aliases

TAstTree

Ƭ TAstTree: TAstTreeRoot

Defined in

ast.ts:53


TAstTreeCommand

Ƭ TAstTreeCommand: Object

Type declaration

NameType
children(TAstTreeParameter | TAstTreeOption)[]
typecommand
valuestring

Defined in

ast.ts:29


TAstTreeItem

Ƭ TAstTreeItem: TAstTreeParentheses | TAstTreeCommand | TAstTreeKeyCommand | TAstTreePipe

Defined in

ast.ts:41


TAstTreeKeyCommand

Ƭ TAstTreeKeyCommand: Object

Type declaration

NameType
childrenTAstTreeParameter[]
typekeyCommand
valuestring

Defined in

ast.ts:35


TAstTreeOption

Ƭ TAstTreeOption: Object

Type declaration

NameType
typeoptionKey
valuestring

Defined in

ast.ts:19


TAstTreeParameter

Ƭ TAstTreeParameter: Object

Type declaration

NameType
typeparameter
valuestring

Defined in

ast.ts:14


TAstTreeParentheses

Ƭ TAstTreeParentheses: Object

Type declaration

NameType
childrenTAstTreeItem[]
typeparentheses

Defined in

ast.ts:43


TAstTreePipe

Ƭ TAstTreePipe: Object

Type declaration

NameType
typepipe
valuestring

Defined in

ast.ts:24


TAstTreeRoot

Ƭ TAstTreeRoot: Object

Type declaration

NameType
childrenTAstTreeItem[]
typeroot

Defined in

ast.ts:48


TCommandItemResult

Ƭ TCommandItemResult: TCommandParenthesesResult | TCommandPipeResult | TKeyCommandResult | TCommandResult

Defined in

parser.ts:75


TCommandParenthesesResult

Ƭ TCommandParenthesesResult: Object

Type declaration

NameType
childrenTCommandItemResult[]
typeparentheses

Defined in

parser.ts:65


TCommandParserResult

Ƭ TCommandParserResult: Object

Type declaration

NameType
childrenTCommandItemResult[]
typeroot

Defined in

parser.ts:77


TCommandPipeResult

Ƭ TCommandPipeResult: Object

Type declaration

NameType
typepipe
valuestring

Defined in

parser.ts:70


TCommandResult

Ƭ TCommandResult: Object

Type declaration

NameType
argumentsunknown[]
cmdstring
optionsRecord<string, unknown>
subCommand?TCommandResult
typecommand

Defined in

parser.ts:57


TKeyCommandResult

Ƭ TKeyCommandResult: Object

Type declaration

NameType
argumentsany[]
cmdstring
typekeyCommand

Defined in

parser.ts:51


TToken

Ƭ TToken: Object

Type declaration

NameType
typeETokenType
valuestring

Defined in

tokenizer.ts:16


TTokenMethodResult

Ƭ TTokenMethodResult: Object

Type declaration

NameType
indexnumber
isContinueboolean

Defined in

tokenizer.ts:21

Variables

keyCommand

Const keyCommand: Object

Type declaration

NameType
ai{ command: string = 'ai:'; content: RegExp }
ai.commandstring
ai.contentRegExp
alias{ command: string = ':'; content: RegExp }
alias.commandstring
alias.contentRegExp
search{ command: string = 'ss:'; content: RegExp }
search.commandstring
search.contentRegExp

Defined in

tokenizer.ts:26

免责声明:本站所有信息、数据、软件仅供学习研究,都不构成投资建议,本站不承担由此导致的任何责任。