parser

package
v0.0.0-...-877e1b8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser represents the program parser

func New

func New(l *lexer.Lexer, fileName string) *Parser

New creates a new parser

func (*Parser) ParseProgram

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

ParseProgram creates the programs AST (Abstract Syntax Tree)

Jump to

Keyboard shortcuts

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