package
1.55.6
Repository: https://github.com/aws/aws-sdk-go.git
Documentation: pkg.go.dev

# Functions

EqualExprKey will return a LHS value in the equal expr.
NewDefaultVisitor return a DefaultVisitor.
NewParseError will return a new ParseError where message is the description of the error.
OpenFile takes a path to a given file, and will open and parse that file.
Parse will parse the given file using the shared config visitor.
ParseAST will parse input from an io.Reader using an LL(1) parser.
ParseASTBytes will parse input from a byte slice using an LL(1) parser.
ParseBytes will parse the given bytes and return the parsed sections.
Walk will traverse the AST using the v, the Visitor.

# Constants

ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
ASTKind* is used in the parse table to transition between the different states.
deprecated.
section_close -> ].
comment -> # comment' | ; comment' comment' -> MarkComplete | value.
deprecated.
ErrCodeParseError is returned when a parsing error has occurred.
ErrCodeUnableToReadFile is used when a file is failed to be opened or read from.
deprecated.
State enums for the parse table.
MarkComplete state will complete statements and move that to the completed AST list.
ValueType enums.
section -> [ section'.
ValueType enums.
section' -> value section_close.
SkipState will skip (NL WS)+.
SkipTokenState will skip any token and push the previous state onto the stack.
stmt' -> MarkComplete | op stmt.
stmt -> value stmt'.
ValueType enums.
TerminalState signifies that the tokens have been fully parsed.
TokenType enums.
TokenType enums.
TokenType enums.
TokenType enums.
TokenType enums.
TokenType enums.
TokenType enums.
TokenType enums.
value -> number | string | boolean | quoted_string.

# Variables

Start is used to indicate the starting state of the parse table.

# Structs

AST interface allows us to determine what kind of node we are on and casting may not need to be necessary.
DefaultVisitor is used to visit statements and expressions and ensure that they are both of the correct format.
ParseError is an error which is returned during any part of the parsing process.
ParseStack is a stack that contains a container, the stack portion, and the list which is the list of ASTs that have been successfully parsed.
Section contains a name and values.
Sections is a map of Section structures that represent a configuration.
Token indicates a metadata about a given value.
Value is a union container.

# Interfaces

Visitor is an interface used by walkers that will traverse an array of ASTs.

# Type aliases

ASTKind represents different states in the parse table and the type of AST that is being constructed.
ParseState represents the current state of the parser.
TokenType represents the various different tokens types.
ValueType is an enum that will signify what type the Value is.