Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandParser ¶
type CommandParser struct {
Expression string
Tokens []commands.CommandWordDef
Description string
CommandList commands.CommandList
// contains filtered or unexported fields
}
CommandParser command parser
func (*CommandParser) Parse ¶
func (ce *CommandParser) Parse() (err error)
Parse register commands to view
func (*CommandParser) ParseGroup ¶
func (ce *CommandParser) ParseGroup()
ParseGroup parse how many group
type TokenGroup ¶
type TokenGroup struct {
Elems []string
Type string // require, option, wild
IsWild bool // 是否为 wild
}
TokenGroup token group
Click to show internal directories.
Click to hide internal directories.