parser

package
v0.0.0-...-9a5373e Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package parser implements a regex parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(source string) (ast.Node, errors.ErrorList)

Parse the given source code and return an Abstract Syntax Tree. Main entry point to the parser.

Types

type Parser

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

Holds the current state of the parsing process.

func New

func New(source string) *Parser

Instantiate a new parser.

func (*Parser) Parse

func (p *Parser) Parse() (ast.Node, errors.ErrorList)

Start the parsing process from the top.

Directories

Path Synopsis
Package ast defines types used by the regex parser.
Package ast defines types used by the regex parser.

Jump to

Keyboard shortcuts

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