package
0.0.0-20240620131300-afb8c20837d2
Repository: https://github.com/gad-lang/gad.git
Documentation: pkg.go.dev
# Functions
NewFileSet creates a new file set.
NewParser creates a Parser.
NewParserWithOptions creates a Parser with parser mode flags.
NewParserWithScanner creates a Parser with parser mode flags.
NewScanner creates a Scanner.
No description provided by the author
StripCR removes carriage return characters.
TrimSpace returns a slice of the string s, with all leading and trailing white space removed, as defined by Unicode.
Unquote interprets s as a single-quoted, double-quoted, or backquoted Go string literal, returning the string value that s quotes.
# Constants
BOM byte order mark.
List of scanner modes.
List of scanner modes.
List of scanner modes.
List of scanner modes.
ParseComments parses comments and add them to AST.
No description provided by the author
No description provided by the author
No description provided by the author
List of scanner modes.
List of scanner modes.
List of scanner modes.
# Structs
No description provided by the author
No description provided by the author
Error represents a parser error.
File represents a file unit.
No description provided by the author
No description provided by the author
Parser parses the Tengo source files.
No description provided by the author
Scanner reads the Gad source text.
No description provided by the author
SourceFile represents a source file.
SourceFilePos represents a position information in the file.
SourceFileSet represents a set of source files.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
ErrorList is a collection of parser errors.
Mode value is a set of flags for parser.
No description provided by the author
ScanMode represents a scanner mode.
ScannerErrorHandler is an error handler for the scanner.
TextFlag represents a text flag.
No description provided by the author
No description provided by the author
No description provided by the author