compacter

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllToken lexer.TokenType = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Scanner *bufio.Scanner

	// state of the parser
	AfterEqual bool
	Quote      rune
}

func NewParser

func NewParser(rd io.Reader) *Parser

func (*Parser) AllQuote

func (p *Parser) AllQuote(l *lexer.L) (fn lexer.StateFunc)

func (*Parser) Err

func (p *Parser) Err() error

func (*Parser) GetLine

func (p *Parser) GetLine(l *lexer.L) (fn lexer.StateFunc)

func (*Parser) Scan

func (p *Parser) Scan() bool

func (*Parser) Text

func (p *Parser) Text() (line string)

Jump to

Keyboard shortcuts

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