envsubst: gomodules.xyz/envsubst/parse Index | Files

package parse

import "gomodules.xyz/envsubst/parse"


Package Files

node.go parse.go scan.go


var ErrBadSubstitution = errors.New("bad substitution")

ErrBadSubstitution represents a substitution parsing error.

type FuncNode Uses

type FuncNode struct {
    Param string
    Name  string
    Args  []Node

FuncNode represents a string function.

type ListNode Uses

type ListNode struct {
    Nodes []Node

ListNode represents a list of nodes.

type Node Uses

type Node interface {
    // contains filtered or unexported methods

Node is an element in the parse tree.

type TextNode Uses

type TextNode struct {
    Value string

TextNode represents a string of text.

type Tree Uses

type Tree struct {
    Root Node
    // contains filtered or unexported fields

Tree is the representation of a single parsed SQL statement.

func Parse Uses

func Parse(buf string) (*Tree, error)

Parse parses the string and returns a Tree.

func (*Tree) Parse Uses

func (t *Tree) Parse(buf string) (tree *Tree, err error)

Parse parses the string buffer to construct an ast representation for expansion.

Package parse imports 3 packages (graph) and is imported by 1 packages. Updated 2019-08-21. Refresh now. Tools for package owners.