parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EOF      int = 0
	ERROR    int = 1
	CONST    int = 2
	FUNC     int = 3
	PACKAGE  int = 4
	TYPE     int = 5
	STRUCT   int = 6
	NIL      int = 7
	IMPORT   int = 8
	EQ       int = 9
	OCURLY   int = 10
	CCURLY   int = 11
	STAR     int = 12
	DOT      int = 13
	OPAREN   int = 14
	CPAREN   int = 15
	COMMA    int = 16
	QMARK    int = 17
	STRING   int = 18
	RSTRING  int = 19
	ID       int = 20
	ELLIPSIS int = 21
)

Variables

This section is empty.

Functions

func Parse

func Parse(
	filename string,
	input []byte,
	errLogger errlogger.ErrLogger,
) (*ast.Unit, error)

Types

type Error

type Error struct {
	Token    Token
	Expected []int
}

type Token

type Token = simplelexer.Token

Jump to

Keyboard shortcuts

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