grammar

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 5 Imported by: 3

README

go install github.com/goccmack/gogll/v3@latest
cd grammar
gogll xpath_grammar.txt

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grammar

type Grammar struct {
	BSR *bsr.BSR
	// contains filtered or unexported fields
}

func Build

func Build(xpath string) (Grammar, error)

Creates an XPath query.

func MustBuild added in v0.9.1

func MustBuild(xpath string) Grammar

Like Build, but panics if an error is thrown.

func (*Grammar) GetString

func (g *Grammar) GetString() string

func (*Grammar) GetStringExtents added in v0.9.5

func (g *Grammar) GetStringExtents(left, right int) string

func (*Grammar) Next

func (g *Grammar) Next(bsr *bsr.BSR) *Grammar

Directories

Path Synopsis
Package lexer is generated by GoGLL.
Package lexer is generated by GoGLL.
Package parser is generated by gogll.
Package parser is generated by gogll.
bsr
Package bsr implements a Binary Subtree Representation set as defined in
Package bsr implements a Binary Subtree Representation set as defined in
slot
Package slot is generated by gogll.
Package slot is generated by gogll.
symbols
Package symbols is generated by gogll.
Package symbols is generated by gogll.
Package sppf implements a Shared Packed Parse Forest as defined in:
Package sppf implements a Shared Packed Parse Forest as defined in:
Package token is generated by GoGLL.
Package token is generated by GoGLL.

Jump to

Keyboard shortcuts

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