parser

package
v0.0.0-...-50a66e4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOWEST int
	ASSIGN
	PIPE
	ARROW
	TERNARY
	BOOLEAN
	BITWISE
	COMPARISON
	RANGE
	BITSHIFT
	SUM
	PRODUCT
	POWER
	PREFIX
	CALL
	INDEX
	AS
)

Precedence.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser represents the parser.

func New

func New(l *lexer.Lexer) *Parser

New initializes a parser.

func (*Parser) Parse

func (p *Parser) Parse() *ast.Program

Parse tokens into an AST.

Jump to

Keyboard shortcuts

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