parser

package
v0.0.0-...-f469397 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package parser implements a parser for Gor source files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseExpr

func ParseExpr(x string) (ast.Expr, error)

ParseExpr parses a single expression.

func ParseFile

func ParseFile(fset *gotoken.FileSet, filename string, src []byte) (*ast.File, error)

ParseFile parses a file.

Types

type Parser

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

Parser state.

func (*Parser) Init

func (p *Parser) Init(fset *gotoken.FileSet, filename string, src []byte)

Init resets the parser state so it can be re-used.

Jump to

Keyboard shortcuts

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