package
0.0.0-20230729055617-8c2d49fbe62c
Repository: https://github.com/robotii/lito.git
Documentation: pkg.go.dev

# Structs

ArgumentPairExpression represents a key/value pair in method parameters or arguments.
ArrayExpression defines the array expression literal which contains the node expression and its value.
AssignExpression represents a variable assignment.
BaseNode holds the attribute every expression or statement should have.
BlockStatement represents a block.
BooleanExpression defines the boolean expression literal which contains the node expression and its value.
BreakStatement represents "break" keyword.
CallExpression represents a call.
ClassStatement represents a class statement.
ConditionalExpression represents if or elsif expression.
Constant represents a constant.
ContinueStatement represents "continue" keyword.
DefStatement represents a def.
ExpressionStatement represents an expression in statement form.
FloatLiteral contains the node expression and its value.
GetBlockExpression represents `block` call in the AST.
HasBlockExpression represents `block` call in the AST.
HashExpression defines the hash expression literal which contains the node expression and its value.
Identifier represents an identifier.
IfExpression represents an if statement.
InfixExpression represents a binary operator.
InstanceVariable represents an instance variable.
IntegerLiteral contains the node expression and its value.
ModuleStatement represents module node in AST.
MultiVariableExpression is not really an expression, it's just a container that holds multiple Variables.
NilExpression represents nil node.
PrefixExpression struct to represent a prefix operator.
Program is the root node of entire AST.
RangeExpression defines the range expression literal which contains the node expression and its start/end value.
ReturnStatement represents a return statement.
SelfExpression represents a reference to the object.
StringLiteral contains the node expression and its value.
WhileStatement represents a while statement.
YieldExpression represents a yield.

# Interfaces

Expression is the AST node for an expression.
Statement is the AST node for a statement.
Variable interface represents assignable nodes, currently these are Identifier, InstanceVariable and Constant.