lang

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind int
const (
	UNKNOWN Kind = iota
	EOF
	WS

	IF

	SYMBOL
	ATOM
	XSD_ANYURI
	XSD_STRING
	XSD_INTEGER
	XSD_DECIMAL
)

type Parser

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

func NewParser

func NewParser(r io.Reader) *Parser

NewParser returns a new instance of Parser.

func (*Parser) Parse

func (p *Parser) Parse() (ast.Rules, error)

type Scanner

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

xxx

func NewScanner

func NewScanner(r io.Reader) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan() Token

type Token

type Token struct {
	Kind    Kind
	Literal string
}

Jump to

Keyboard shortcuts

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