plush: github.com/gobuffalo/plush/parser Index | Files

package parser

import "github.com/gobuffalo/plush/parser"

Index

Package Files

errors.go parser.go precedences.go

Constants

const (
    LOWEST      int //
    ANDOR           // || or &&
    EQUALS          // ==
    LESSGREATER     // > or <
    SUM             // +
    PRODUCT         // *
    PREFIX          // -X or !X
    CALL            // myFunction(X)
    INDEX           // array[index]
)

func Parse Uses

func Parse(s string) (*ast.Program, error)

Parse the string and return an AST or an error

Package parser imports 6 packages (graph) and is imported by 5 packages. Updated 2019-07-23. Refresh now. Tools for package owners.