Versions in this module Expand all Collapse all v0 v0.2.2 Jun 8, 2025 v0.2.1 Jun 6, 2025 v0.2.0 Jun 1, 2025 Changes in this version type Compiler + func (c *Compiler) VisitCall(f *ast.CallExpr) any + func (c *Compiler) VisitDotAccess(v *ast.DotAccessExpr) any + func (c *Compiler) VisitExec(stmt ast.ExecStmt) any + func (c *Compiler) VisitImport(_ ast.ImportStmt) any v0.1.2 May 11, 2025 v0.1.1 May 11, 2025 v0.1.0 May 11, 2025 Changes in this version + const ArgPath + const CALL + const MaxCallCounter + const RA + const RB + const RET + const RETF + const RX + const StructPath + const VarPath type Compiler + ArgPath string + CALL string + RA string + RB string + RET string + RX string + Scope string + StructPath string + Structs map[string]statements.StructDeclarationStmt + VarPath string + func (c *Compiler) VisitScore(stmt statements.ScoreStmt) interfaces.IRCode + func (c *Compiler) VisitSetReturnFlag(stmt statements.SetReturnFlagStmt) interfaces.IRCode + func (c *Compiler) VisitWhile(stmt statements.WhileStmt) interfaces.IRCode v0.0.15 May 1, 2025 v0.0.14 May 1, 2025 Changes in this version type Compiler + func (c *Compiler) VisitStruct(expr expressions.StructExpr) string v0.0.13 May 1, 2025 Changes in this version + type Compiler struct + Config interfaces.ProjectConfig + DatapackRoot string + Headers []interfaces.DatapackHeader + LoadFuncName string + Namespace string + ProjectRoot string + TickFuncName string + func NewCompiler(config interfaces.ProjectConfig, projectRoot string, ...) *Compiler + func (c *Compiler) Compare(expr expressions.BinaryExpr, ra string, rb string, rx string) string + func (c *Compiler) Compile(program parser.Program) + func (c *Compiler) VisitBinary(expr expressions.BinaryExpr) string + func (c *Compiler) VisitBlock(stmt statements.BlockStmt) string + func (c *Compiler) VisitExpression(stmt statements.ExpressionStmt) string + func (c *Compiler) VisitFieldAccess(expr expressions.FieldAccessExpr) string + func (c *Compiler) VisitFunctionCall(expr expressions.FunctionCallExpr) string + func (c *Compiler) VisitFunctionDeclaration(stmt statements.FunctionDeclarationStmt) string + func (c *Compiler) VisitGrouping(expr expressions.GroupingExpr) string + func (c *Compiler) VisitIf(stmt statements.IfStmt) string + func (c *Compiler) VisitList(expr expressions.ListExpr) string + func (c *Compiler) VisitLiteral(expr expressions.LiteralExpr) string + func (c *Compiler) VisitLogical(expr expressions.LogicalExpr) string + func (c *Compiler) VisitReturn(stmt statements.ReturnStmt) string + func (c *Compiler) VisitSlice(expr expressions.SliceExpr) string + func (c *Compiler) VisitStructDeclaration(stmt statements.StructDeclarationStmt) string + func (c *Compiler) VisitUnary(expr expressions.UnaryExpr) string + func (c *Compiler) VisitVariable(expr expressions.VariableExpr) string + func (c *Compiler) VisitVariableAssignment(stmt statements.VariableAssignmentStmt) string + func (c *Compiler) VisitVariableDeclaration(stmt statements.VariableDeclarationStmt) string + type TypedIdentifier struct + Name string + Type interfaces.ValueType