parser

package
v0.0.0-...-1139f41 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 5 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 generating AST from tokens

func New

func New(lexer lexer.Lexer) Parser

New create new Parser by given lexer

func (*Parser) Parse

func (p *Parser) Parse() (node ast.Node, err error)

Parse parser's entry, return top level ast node

Jump to

Keyboard shortcuts

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