parser

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScanner

func NewScanner(file *token.File, eh ErrorHandler) (*scanner, error)

func NewScannerSrc

func NewScannerSrc(file *token.File, src []byte, eh ErrorHandler) (*scanner, error)

Types

type ErrorHandler

type ErrorHandler func(p token.Position, msg string, args ...interface{})

type Parser

type Parser interface {
	Parse(file string) (ast.Cook, error)
	ParseSrc(file *token.File, src []byte) (ast.Cook, error)
}

func NewParser

func NewParser() Parser

Jump to

Keyboard shortcuts

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