parser

package
v0.0.0-...-dca90b2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Pos token.Position
	Tok token.Token
	Sss string
	Msg string
}

func (*Error) Error

func (err *Error) Error() string

type Lexical

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

func NewLexical

func NewLexical(fname string) (*Lexical, error)

func (*Lexical) Back

func (lex *Lexical) Back()

func (*Lexical) Next

func (lex *Lexical) Next(sk Skip) (token.Pos, token.Token, string)

func (*Lexical) Position

func (lex *Lexical) Position(pos token.Pos) token.Position

type Parser

type Parser struct {

	/**/
	Expres []*SExpre
	// contains filtered or unexported fields
}

func NewParser

func NewParser(fname string) (*Parser, error)

func (*Parser) Dump

func (ps *Parser) Dump()

func (*Parser) GoThrou

func (ps *Parser) GoThrou() ([]*SExpre, error)

type SArray

type SArray struct {
	Vals []interface{}
}

type SExpre

type SExpre struct {
	Ident string
	Vval  interface{}
	Pos   token.Position
}

type SLabel

type SLabel struct {
	Rfnm string
}

type SStruct

type SStruct struct {
	Sname  string
	Fields map[string]interface{}
}

map???

type Skip

type Skip uint

Jump to

Keyboard shortcuts

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