parser

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL