Documentation
¶
Overview ¶
Package parser implements utilities for parsing River configuration files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseExpression ¶
ParseExpression parses a single River expression from expr.
If an error was encountered during parsing, the returned expression will be nil and err will be an ErrorList with all the errors encountered during parsing.
func ParseFile ¶
ParseFile parses an entire River configuration file. The data parameter should hold the file contents to parse, while the filename parameter is used for reporting errors.
If an error was encountered during parsing, the returned AST will be nil and err will be an diag.Diagnostics all the errors encountered during parsing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.