package
0.0.0-20240620131300-afb8c20837d2
Repository: https://github.com/gad-lang/gad.git
Documentation: pkg.go.dev

# Functions

IsStatement returns true if given value is implements interface{ StmtNode() }.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
ArgsList represents a list of identifiers.
ArgVarLit represents an variadic of argument.
ArrayLit represents an array literal.
AssignStmt represents an assignment statement.
A BadDecl node is a placeholder for declarations containing syntax errors for which no correct declaration nodes can be created.
BadExpr represents a bad expression.
BadStmt represents a bad statement.
BinaryExpr represents a binary operator expression.
No description provided by the author
BlockStmt represents a block statement.
BoolLit represents a boolean literal.
BranchStmt represents a branch statement.
No description provided by the author
No description provided by the author
CallExpr represents a function call expression.
CallExprArgs represents a call expression arguments.
CallExprNamedArgs represents a call expression keyword arguments.
CatchStmt represents an catch statement.
CharLit represents a character literal.
ClosureLit represents a function closure literal.
No description provided by the author
CondExpr represents a ternary conditional expression.
No description provided by the author
No description provided by the author
DecimalLit represents a floating point literal.
A DeclStmt node represents a declaration in a statement list.
DictElementLit represents a map element.
DictLit represents a map literal.
DotFileLit represents an __name__ literal.
DotFileNameLit represents an __name__ literal.
No description provided by the author
EmptyStmt represents an empty statement.
ExprStmt represents an expression statement.
ExprToTextStmt represents to text wrapped expression.
FinallyStmt represents an finally statement.
FlagLit represents a yes literal.
FloatLit represents a floating point literal.
ForInStmt represents a for-in statement.
ForStmt represents a for statement.
FuncLit represents a function literal.
FuncParams represents a function paramsw.
FuncType represents a function type definition.
A GenDecl node (generic declaration node) represents a variable declaration.
Ident represents an identifier.
IdentList represents a list of identifiers.
IfStmt represents an if statement.
ImportExpr represents an import expression.
IncDecStmt represents increment or decrement statement.
IndexExpr represents an index expression.
IntLit represents an integer literal.
IsModuleLit represents an __is_module__ literal.
KeyValueArrayLit represents a key value array literal.
KeyValueLit represents a key value element.
MultiParenExpr represents a parenthesis wrapped expressions.
No description provided by the author
No description provided by the author
NamedArgsList represents a list of identifier with value pairs.
NamedArgVarLit represents an variadic of named argument.
No description provided by the author
NilLit represents an nil literal.
NullishSelectorExpr represents a selector expression.
No description provided by the author
ParenExpr represents a parenthesis wrapped expression.
No description provided by the author
RawStringStmt represents an RawStringStmt.
Return represents an return expression.
ReturnExpr represents an return expression.
ReturnStmt represents a return statement.
SelectorExpr represents a selector expression.
SliceExpr represents a slice expression.
StdErrLit represents an STDERR literal.
StdInLit represents an STDIN literal.
StdOutLit represents an STDOUT literal.
No description provided by the author
StringLit represents a string literal.
ThrowExpr represents an throw expression.
ThrowStmt represents an throw statement.
TryStmt represents an try statement.
No description provided by the author
UintLit represents an unsigned integer literal.
UnaryExpr represents an unary operator expression.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
Decl wraps methods for all declaration nodes.
Expr represents an expression node in the AST.
No description provided by the author
No description provided by the author
Stmt represents a statement in the AST.