parser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BracketOpenRound    = '('
	BracketOpenSquare   = '['
	BracketOpenBrace    = '{'
	BracketOpenAngular  = '<'
	BracketClosedRound  = ')'
	BracketClosedSquare = ']'
	BracketClosedBrace  = '}'
	BracketCloseAngular = '>'
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bracket

type Bracket struct {
	Kind rune
	Line int
	Col  int
}

type BracketParser

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

func NewBracketParser

func NewBracketParser() *BracketParser

func (*BracketParser) Empty

func (p *BracketParser) Empty() bool

func (*BracketParser) ParseLine

func (p *BracketParser) ParseLine(lineNum int, line string) error

func (*BracketParser) Pop added in v0.2.0

func (p *BracketParser) Pop() *Bracket

func (*BracketParser) Push added in v0.2.0

func (p *BracketParser) Push(b Bracket)

func (*BracketParser) Top

func (p *BracketParser) Top() *Bracket

Jump to

Keyboard shortcuts

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