commandline

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name string
	Args []string
}

func Parse

func Parse(s string) *Command

type CommandT

type CommandT struct {
	Name []byte
	Args []Token
}

func ParseT

func ParseT(s string) (*CommandT, error)

type Token

type Token struct {
	Type  TokenType
	Value []byte
}

type TokenType

type TokenType int
const (
	TokenErr TokenType = iota
	TokenEOF
	TokenIdent
	TokenString
)

Jump to

Keyboard shortcuts

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