tavor: github.com/zimmski/tavor/parser Index | Files

package parser

import "github.com/zimmski/tavor/parser"

Index

Package Files

internal.go parser.go tavor.go typed.go

func ParseInternal Uses

func ParseInternal(root token.Token, src io.Reader) []error

ParseInternal reads and parses an input modelled after the given token graph. The errors return argument is not nil if an error is encountered during reading or parsing the input e.g. if the input does not match the given token graph.

func ParseTavor Uses

func ParseTavor(src io.Reader) (token.Token, error)

ParseTavor reads and parses a Tavor formatted input and returns its token graph representation beginning with the START token. The error return argument is not nil if an error is encountered during reading or parsing the file e.g. a syntax or semantic error.

Package parser imports 20 packages (graph). Updated 2018-11-06. Refresh now. Tools for package owners.