Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryExpression ¶
func (BinaryExpression) GetType ¶
func (b BinaryExpression) GetType() ValueType
type FunctionDecl ¶
type FunctionDecl struct {
Type ValueType
Name string
Body Block
SymbolTable map[string]Symbol
NextSymbolIndex int
}
func (*FunctionDecl) DefineSymbol ¶
func (f *FunctionDecl) DefineSymbol(name string, typeName ValueType, constant bool) Symbol
func (*FunctionDecl) GetVariableCounts ¶
func (f *FunctionDecl) GetVariableCounts() (intCount int, floatCount int)
type Program ¶
type Program struct {
Functions []FunctionDecl
}
type ReturnStmt ¶
type ReturnStmt struct {
Value Node
}
func (ReturnStmt) GetType ¶
func (r ReturnStmt) GetType() ValueType
type UnaryExpression ¶
func (UnaryExpression) GetType ¶
func (u UnaryExpression) GetType() ValueType
type VariableAccess ¶
func (VariableAccess) GetType ¶
func (v VariableAccess) GetType() ValueType
type VariableDefineStmt ¶
func (VariableDefineStmt) GetType ¶
func (v VariableDefineStmt) GetType() ValueType
type VariableUpdateStmt ¶
func (VariableUpdateStmt) GetType ¶
func (v VariableUpdateStmt) GetType() ValueType
Click to show internal directories.
Click to hide internal directories.