vtparser

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v1.0.2

type Action = byte

Action represents a action type

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser represents a state machine.

func New

func New(
	prtcb printCallback,
	execb execCallback,
	putcb putCallback,
	uhocb unhookCallback,
	hokcb hookCallback,
	osccb oscCallback,
	csicb csiCallback,
	esccb escCallback,
) *Parser

New returns a new parser.

func (*Parser) Advance added in v1.0.2

func (p *Parser) Advance(b byte)

Advance advances the state machine.

func (*Parser) Intermediates added in v1.0.2

func (p *Parser) Intermediates() []byte

Intermediates returns the intermediates

func (*Parser) OscParams added in v1.0.2

func (p *Parser) OscParams() [][]byte

OscParams returns the osc params

func (*Parser) Params added in v1.0.2

func (p *Parser) Params() []int64

Params returns the params

func (*Parser) State added in v1.0.2

func (p *Parser) State() State

State returns the current state

func (*Parser) StateName added in v1.0.2

func (p *Parser) StateName() string

StateName returns the current state name

type State added in v1.0.2

type State = byte

State represents a state type

Jump to

Keyboard shortcuts

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