@istock/command-parser / Exports
@istock/command-parser
Table of contents
Enumerations
Classes
Type Aliases
- TAstTree
- TAstTreeCommand
- TAstTreeItem
- TAstTreeKeyCommand
- TAstTreeOption
- TAstTreeParameter
- TAstTreeParentheses
- TAstTreePipe
- TAstTreeRoot
- TCommandItemResult
- TCommandParenthesesResult
- TCommandParserResult
- TCommandPipeResult
- TCommandResult
- TKeyCommandResult
- TToken
- TTokenMethodResult
Variables
Type Aliases
TAstTree
Ƭ TAstTree: TAstTreeRoot
Defined in
ast.ts:53
TAstTreeCommand
Ƭ TAstTreeCommand: Object
Type declaration
Name | Type |
---|---|
children | (TAstTreeParameter | TAstTreeOption )[] |
type | command |
value | string |
Defined in
ast.ts:29
TAstTreeItem
Ƭ TAstTreeItem: TAstTreeParentheses
| TAstTreeCommand
| TAstTreeKeyCommand
| TAstTreePipe
Defined in
ast.ts:41
TAstTreeKeyCommand
Ƭ TAstTreeKeyCommand: Object
Type declaration
Name | Type |
---|---|
children | TAstTreeParameter [] |
type | keyCommand |
value | string |
Defined in
ast.ts:35
TAstTreeOption
Ƭ TAstTreeOption: Object
Type declaration
Name | Type |
---|---|
type | optionKey |
value | string |
Defined in
ast.ts:19
TAstTreeParameter
Ƭ TAstTreeParameter: Object
Type declaration
Name | Type |
---|---|
type | parameter |
value | string |
Defined in
ast.ts:14
TAstTreeParentheses
Ƭ TAstTreeParentheses: Object
Type declaration
Name | Type |
---|---|
children | TAstTreeItem [] |
type | parentheses |
Defined in
ast.ts:43
TAstTreePipe
Ƭ TAstTreePipe: Object
Type declaration
Name | Type |
---|---|
type | pipe |
value | string |
Defined in
ast.ts:24
TAstTreeRoot
Ƭ TAstTreeRoot: Object
Type declaration
Name | Type |
---|---|
children | TAstTreeItem [] |
type | root |
Defined in
ast.ts:48
TCommandItemResult
Ƭ TCommandItemResult: TCommandParenthesesResult
| TCommandPipeResult
| TKeyCommandResult
| TCommandResult
Defined in
parser.ts:75
TCommandParenthesesResult
Ƭ TCommandParenthesesResult: Object
Type declaration
Name | Type |
---|---|
children | TCommandItemResult [] |
type | parentheses |
Defined in
parser.ts:65
TCommandParserResult
Ƭ TCommandParserResult: Object
Type declaration
Name | Type |
---|---|
children | TCommandItemResult [] |
type | root |
Defined in
parser.ts:77
TCommandPipeResult
Ƭ TCommandPipeResult: Object
Type declaration
Name | Type |
---|---|
type | pipe |
value | string |
Defined in
parser.ts:70
TCommandResult
Ƭ TCommandResult: Object
Type declaration
Name | Type |
---|---|
arguments | unknown [] |
cmd | string |
options | Record <string , unknown > |
subCommand? | TCommandResult |
type | command |
Defined in
parser.ts:57
TKeyCommandResult
Ƭ TKeyCommandResult: Object
Type declaration
Name | Type |
---|---|
arguments | any [] |
cmd | string |
type | keyCommand |
Defined in
parser.ts:51
TToken
Ƭ TToken: Object
Type declaration
Name | Type |
---|---|
type | ETokenType |
value | string |
Defined in
tokenizer.ts:16
TTokenMethodResult
Ƭ TTokenMethodResult: Object
Type declaration
Name | Type |
---|---|
index | number |
isContinue | boolean |
Defined in
tokenizer.ts:21
Variables
keyCommand
• Const
keyCommand: Object
Type declaration
Name | Type |
---|---|
ai | { command : string = 'ai:'; content : RegExp } |
ai.command | string |
ai.content | RegExp |
alias | { command : string = ':'; content : RegExp } |
alias.command | string |
alias.content | RegExp |
search | { command : string = 'ss:'; content : RegExp } |
search.command | string |
search.content | RegExp |
Defined in
tokenizer.ts:26