parser

package
v0.0.0-...-d9f2893 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package parser implements function to parse the regular expressions.

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 has a slice of tokens to parse, and now looking token.

func NewParser

func NewParser(s string) *Parser

NewParser returns a new Parser with the tokens to parse that were obtained by scanning.

func (*Parser) GetAST

func (psr *Parser) GetAST() node.Node

GetAST returns the root node of AST obtained by parsing.

Jump to

Keyboard shortcuts

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