Documentation ¶
Overview ¶
Package parser implements a parser for Flux source files. Input is provided by a string and output is an abstract-syntax tree (AST) representing the Flux source.
The parser accepts a larger language than is syntactically permitted and will embed any errors from parsing the source into the AST itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDir ¶ added in v0.13.0
ParseDir parses all files ending in '.flux' within the specified directory. All discovered packages are returned. The parsed packages may contain errors, use ast.Check to check for errors.
func ParseFile ¶
ParseFile parses the specified path as a Flux source file. The parsed file may contain errors, use ast.Check to check for errors.
func ParseSource ¶ added in v0.13.0
ParseSource parses the string as Flux source code. The parsed package may contain errors, use ast.Check to check for errors.
Types ¶
This section is empty.