package
2.17.0
Repository: https://github.com/d5/tengo.git
Documentation: pkg.go.dev

# Functions

NewFileSet creates a new file set.
NewParser creates a Parser.
NewScanner creates a Scanner.
ReadOperands reads operands from the bytecode.
StripCR removes carriage return characters.

# Constants

List of scanner modes.
NoPos represents an invalid position.
Logical AND jump.
Array object.
bitwise complement.
Binary operation.
Call function.
Push closure.
Load constant.
Define local variable.
Equal ==.
Error object.
Push false.
Get builtin function.
Get free variables.
Get free variable pointer object.
Get global variable.
Get local variable.
Get local variable as a pointer.
Immutable object.
Index operation.
Iterator init.
Iterator key.
Iterator next.
Iterator value.
Jump.
Jump if falsy.
Logical not !.
Map object.
Minus -.
Not equal !=.
Push null.
Logical OR jump.
Pop.
Return.
Set free variables.
Set global variable.
Set local variable.
Set free variables using selectors.
Set global variable using selectors.
Set local variable using selectors.
Slice operation.
Suspend VM.
Push true.
List of scanner modes.

# Variables

OpcodeNames are string representation of opcodes.
OpcodeOperands is the number of operands.

# Structs

ArrayLit represents an array literal.
AssignStmt represents an assignment statement.
BadExpr represents a bad expression.
BadStmt represents a bad statement.
BinaryExpr represents a binary operator expression.
BlockStmt represents a block statement.
BoolLit represents a boolean literal.
BranchStmt represents a branch statement.
CallExpr represents a function call expression.
CharLit represents a character literal.
CondExpr represents a ternary conditional expression.
EmptyStmt represents an empty statement.
Error represents a parser error.
ErrorExpr represents an error expression.
ExportStmt represents an export statement.
ExprStmt represents an expression statement.
File represents a file unit.
FloatLit represents a floating point literal.
ForInStmt represents a for-in statement.
ForStmt represents a for statement.
FuncLit represents a function literal.
FuncType represents a function type definition.
Ident represents an identifier.
IdentList represents a list of identifiers.
IfStmt represents an if statement.
ImmutableExpr represents an immutable expression.
ImportExpr represents an import expression.
IncDecStmt represents increment or decrement statement.
IndexExpr represents an index expression.
IntLit represents an integer literal.
MapElementLit represents a map element.
MapLit represents a map literal.
ParenExpr represents a parenthesis wrapped expression.
Parser parses the Tengo source files.
ReturnStmt represents a return statement.
Scanner reads the Tengo source text.
SelectorExpr represents a selector expression.
SliceExpr represents a slice expression.
SourceFile represents a source file.
SourceFilePos represents a position information in the file.
SourceFileSet represents a set of source files.
StringLit represents a string literal.
UnaryExpr represents an unary operator expression.
UndefinedLit represents an undefined literal.

# Interfaces

Expr represents an expression node in the AST.
Node represents a node in the AST.
Stmt represents a statement in the AST.

# Type aliases

ErrorList is a collection of parser errors.
Opcode represents a single byte operation code.
Pos represents a position in the file set.
ScanMode represents a scanner mode.
ScannerErrorHandler is an error handler for the scanner.