package
0.2.0
Repository: https://github.com/vanadium/core.git
Documentation: pkg.go.dev

# Functions

ExtractExprPackagePaths returns any package paths that appear in named constants in expr.
No description provided by the author
InferPackageName returns the package name from a group of files.
ParseConfig takes a file name, the contents of the config file src, and the accumulated errors, and parses the config into a parse.Config containing the parse tree.
ParseExprs parses data into a slice of parsed const expressions.
ParseFile takes a file name, the contents of the vdl file src, and the accumulated errors, and parses the vdl into a parse.File containing the parse tree.
QuoteStripDoc takes a Doc string, which includes comment markers /**/ and double-slash, and returns a raw-quoted string.

# Structs

Config represents a parsed config file.
ConstBinaryOp represents all binary operations.
ConstCompositeLit represents composite literals in const expressions.
ConstDef represents a user-defined named const.
ConstIndexed represents an index operation on a composite type.
ConstLit represents scalar literals in const expressions.
ConstNamed represents named references to other consts.
ConstTypeConv represents explicit type conversions.
ConstTypeObject represents typeobject; a type used as a value.
ConstUnaryOp represents all unary operations.
ErrorDef represents an error definition.
Field represents fields in structs as well as method arguments.
File represents a parsed vdl file.
Import represents an import definition, which is used to import other packages into an vdl file.
Interface represents a set of embedded interfaces and methods.
KVLit represents a key/value literal in composite literals.
LangFmt represents a language / format string pair.
Method represents a method in an interface.
NamePos represents a name, its associated position and documentation.
Opts specifies vdl parsing options.
Pos captures positional information during parsing.
StringPos holds a string and a Pos.
TypeArray represents array types.
TypeDef represents a user-defined named type.
TypeEnum represents enum types.
TypeList represents list types.
TypeMap represents map types.
TypeNamed captures named references to other types.
TypeOptional represents optional types.
TypeSet represents set types.
TypeStruct represents struct types.
TypeUnion represents union types.

# Interfaces

ConstExpr is the interface for all nodes in an expression.
Type is an interface representing symbolic occurrences of types in VDL files.