Documentation ¶
Index ¶
- Constants
- func GenerateWasm(funcs []*ir.Func) *wasm.Module
- type Compiler
- func (compiler *Compiler) VisitArrayExpression(_ *ast.ArrayExpression) ir.Expr
- func (compiler *Compiler) VisitAssignmentStatement(_ *ast.AssignmentStatement) ir.Stmt
- func (compiler *Compiler) VisitAttachExpression(_ *ast.AttachExpression) ir.Expr
- func (compiler *Compiler) VisitAttachmentDeclaration(_ *ast.AttachmentDeclaration) ir.Stmt
- func (compiler *Compiler) VisitBinaryExpression(expression *ast.BinaryExpression) ir.Expr
- func (compiler *Compiler) VisitBoolExpression(_ *ast.BoolExpression) ir.Expr
- func (compiler *Compiler) VisitBreakStatement(_ *ast.BreakStatement) ir.Stmt
- func (compiler *Compiler) VisitCastingExpression(_ *ast.CastingExpression) ir.Expr
- func (compiler *Compiler) VisitCompositeDeclaration(_ *ast.CompositeDeclaration) ir.Stmt
- func (compiler *Compiler) VisitConditionalExpression(_ *ast.ConditionalExpression) ir.Expr
- func (compiler *Compiler) VisitContinueStatement(_ *ast.ContinueStatement) ir.Stmt
- func (compiler *Compiler) VisitCreateExpression(_ *ast.CreateExpression) ir.Expr
- func (compiler *Compiler) VisitDestroyExpression(_ *ast.DestroyExpression) ir.Expr
- func (compiler *Compiler) VisitDictionaryExpression(_ *ast.DictionaryExpression) ir.Expr
- func (compiler *Compiler) VisitEmitStatement(_ *ast.EmitStatement) ir.Stmt
- func (compiler *Compiler) VisitEnumCaseDeclaration(_ *ast.EnumCaseDeclaration) ir.Stmt
- func (compiler *Compiler) VisitExpressionStatement(_ *ast.ExpressionStatement) ir.Stmt
- func (compiler *Compiler) VisitFieldDeclaration(_ *ast.FieldDeclaration) ir.Stmt
- func (compiler *Compiler) VisitFixedPointExpression(_ *ast.FixedPointExpression) ir.Expr
- func (compiler *Compiler) VisitForStatement(_ *ast.ForStatement) ir.Stmt
- func (compiler *Compiler) VisitForceExpression(_ *ast.ForceExpression) ir.Expr
- func (compiler *Compiler) VisitFunctionDeclaration(declaration *ast.FunctionDeclaration) ir.Stmt
- func (compiler *Compiler) VisitFunctionExpression(_ *ast.FunctionExpression) ir.Expr
- func (compiler *Compiler) VisitIdentifierExpression(expression *ast.IdentifierExpression) ir.Expr
- func (compiler *Compiler) VisitIfStatement(_ *ast.IfStatement) ir.Stmt
- func (compiler *Compiler) VisitImportDeclaration(_ *ast.ImportDeclaration) ir.Stmt
- func (compiler *Compiler) VisitIndexExpression(_ *ast.IndexExpression) ir.Expr
- func (compiler *Compiler) VisitIntegerExpression(expression *ast.IntegerExpression) ir.Expr
- func (compiler *Compiler) VisitInterfaceDeclaration(_ *ast.InterfaceDeclaration) ir.Stmt
- func (compiler *Compiler) VisitInvocationExpression(_ *ast.InvocationExpression) ir.Expr
- func (compiler *Compiler) VisitMemberExpression(_ *ast.MemberExpression) ir.Expr
- func (compiler *Compiler) VisitNilExpression(_ *ast.NilExpression) ir.Expr
- func (compiler *Compiler) VisitPathExpression(_ *ast.PathExpression) ir.Expr
- func (compiler *Compiler) VisitPragmaDeclaration(_ *ast.PragmaDeclaration) ir.Stmt
- func (compiler *Compiler) VisitProgram(_ *ast.Program) ir.Repr
- func (compiler *Compiler) VisitReferenceExpression(_ *ast.ReferenceExpression) ir.Expr
- func (compiler *Compiler) VisitRemoveStatement(_ *ast.RemoveStatement) ir.Stmt
- func (compiler *Compiler) VisitReturnStatement(statement *ast.ReturnStatement) ir.Stmt
- func (compiler *Compiler) VisitSpecialFunctionDeclaration(declaration *ast.SpecialFunctionDeclaration) ir.Stmt
- func (compiler *Compiler) VisitStringExpression(e *ast.StringExpression) ir.Expr
- func (compiler *Compiler) VisitSwapStatement(_ *ast.SwapStatement) ir.Stmt
- func (compiler *Compiler) VisitSwitchStatement(_ *ast.SwitchStatement) ir.Stmt
- func (compiler *Compiler) VisitTransactionDeclaration(_ *ast.TransactionDeclaration) ir.Stmt
- func (compiler *Compiler) VisitUnaryExpression(_ *ast.UnaryExpression) ir.Expr
- func (compiler *Compiler) VisitVariableDeclaration(declaration *ast.VariableDeclaration) ir.Stmt
- func (compiler *Compiler) VisitVoidExpression(_ *ast.VoidExpression) ir.Expr
- func (compiler *Compiler) VisitWhileStatement(_ *ast.WhileStatement) ir.Stmt
- type Local
Constants ¶
View Source
const RuntimeModuleName = "crt"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Compiler ¶
func NewCompiler ¶
func (*Compiler) VisitArrayExpression ¶
func (compiler *Compiler) VisitArrayExpression(_ *ast.ArrayExpression) ir.Expr
func (*Compiler) VisitAssignmentStatement ¶
func (compiler *Compiler) VisitAssignmentStatement(_ *ast.AssignmentStatement) ir.Stmt
func (*Compiler) VisitAttachExpression ¶ added in v0.36.0
func (compiler *Compiler) VisitAttachExpression(_ *ast.AttachExpression) ir.Expr
func (*Compiler) VisitAttachmentDeclaration ¶ added in v0.36.0
func (compiler *Compiler) VisitAttachmentDeclaration(_ *ast.AttachmentDeclaration) ir.Stmt
func (*Compiler) VisitBinaryExpression ¶
func (compiler *Compiler) VisitBinaryExpression(expression *ast.BinaryExpression) ir.Expr
func (*Compiler) VisitBoolExpression ¶
func (compiler *Compiler) VisitBoolExpression(_ *ast.BoolExpression) ir.Expr
func (*Compiler) VisitBreakStatement ¶
func (compiler *Compiler) VisitBreakStatement(_ *ast.BreakStatement) ir.Stmt
func (*Compiler) VisitCastingExpression ¶
func (compiler *Compiler) VisitCastingExpression(_ *ast.CastingExpression) ir.Expr
func (*Compiler) VisitCompositeDeclaration ¶
func (compiler *Compiler) VisitCompositeDeclaration(_ *ast.CompositeDeclaration) ir.Stmt
func (*Compiler) VisitConditionalExpression ¶
func (compiler *Compiler) VisitConditionalExpression(_ *ast.ConditionalExpression) ir.Expr
func (*Compiler) VisitContinueStatement ¶
func (compiler *Compiler) VisitContinueStatement(_ *ast.ContinueStatement) ir.Stmt
func (*Compiler) VisitCreateExpression ¶
func (compiler *Compiler) VisitCreateExpression(_ *ast.CreateExpression) ir.Expr
func (*Compiler) VisitDestroyExpression ¶
func (compiler *Compiler) VisitDestroyExpression(_ *ast.DestroyExpression) ir.Expr
func (*Compiler) VisitDictionaryExpression ¶
func (compiler *Compiler) VisitDictionaryExpression(_ *ast.DictionaryExpression) ir.Expr
func (*Compiler) VisitEmitStatement ¶
func (compiler *Compiler) VisitEmitStatement(_ *ast.EmitStatement) ir.Stmt
func (*Compiler) VisitEnumCaseDeclaration ¶
func (compiler *Compiler) VisitEnumCaseDeclaration(_ *ast.EnumCaseDeclaration) ir.Stmt
func (*Compiler) VisitExpressionStatement ¶
func (compiler *Compiler) VisitExpressionStatement(_ *ast.ExpressionStatement) ir.Stmt
func (*Compiler) VisitFieldDeclaration ¶
func (compiler *Compiler) VisitFieldDeclaration(_ *ast.FieldDeclaration) ir.Stmt
func (*Compiler) VisitFixedPointExpression ¶
func (compiler *Compiler) VisitFixedPointExpression(_ *ast.FixedPointExpression) ir.Expr
func (*Compiler) VisitForStatement ¶
func (compiler *Compiler) VisitForStatement(_ *ast.ForStatement) ir.Stmt
func (*Compiler) VisitForceExpression ¶
func (compiler *Compiler) VisitForceExpression(_ *ast.ForceExpression) ir.Expr
func (*Compiler) VisitFunctionDeclaration ¶
func (compiler *Compiler) VisitFunctionDeclaration(declaration *ast.FunctionDeclaration) ir.Stmt
func (*Compiler) VisitFunctionExpression ¶
func (compiler *Compiler) VisitFunctionExpression(_ *ast.FunctionExpression) ir.Expr
func (*Compiler) VisitIdentifierExpression ¶
func (compiler *Compiler) VisitIdentifierExpression(expression *ast.IdentifierExpression) ir.Expr
func (*Compiler) VisitIfStatement ¶
func (compiler *Compiler) VisitIfStatement(_ *ast.IfStatement) ir.Stmt
func (*Compiler) VisitImportDeclaration ¶
func (compiler *Compiler) VisitImportDeclaration(_ *ast.ImportDeclaration) ir.Stmt
func (*Compiler) VisitIndexExpression ¶
func (compiler *Compiler) VisitIndexExpression(_ *ast.IndexExpression) ir.Expr
func (*Compiler) VisitIntegerExpression ¶
func (compiler *Compiler) VisitIntegerExpression(expression *ast.IntegerExpression) ir.Expr
func (*Compiler) VisitInterfaceDeclaration ¶
func (compiler *Compiler) VisitInterfaceDeclaration(_ *ast.InterfaceDeclaration) ir.Stmt
func (*Compiler) VisitInvocationExpression ¶
func (compiler *Compiler) VisitInvocationExpression(_ *ast.InvocationExpression) ir.Expr
func (*Compiler) VisitMemberExpression ¶
func (compiler *Compiler) VisitMemberExpression(_ *ast.MemberExpression) ir.Expr
func (*Compiler) VisitNilExpression ¶
func (compiler *Compiler) VisitNilExpression(_ *ast.NilExpression) ir.Expr
func (*Compiler) VisitPathExpression ¶
func (compiler *Compiler) VisitPathExpression(_ *ast.PathExpression) ir.Expr
func (*Compiler) VisitPragmaDeclaration ¶
func (compiler *Compiler) VisitPragmaDeclaration(_ *ast.PragmaDeclaration) ir.Stmt
func (*Compiler) VisitReferenceExpression ¶
func (compiler *Compiler) VisitReferenceExpression(_ *ast.ReferenceExpression) ir.Expr
func (*Compiler) VisitRemoveStatement ¶ added in v0.36.0
func (compiler *Compiler) VisitRemoveStatement(_ *ast.RemoveStatement) ir.Stmt
func (*Compiler) VisitReturnStatement ¶
func (compiler *Compiler) VisitReturnStatement(statement *ast.ReturnStatement) ir.Stmt
func (*Compiler) VisitSpecialFunctionDeclaration ¶ added in v0.25.0
func (compiler *Compiler) VisitSpecialFunctionDeclaration(declaration *ast.SpecialFunctionDeclaration) ir.Stmt
func (*Compiler) VisitStringExpression ¶
func (compiler *Compiler) VisitStringExpression(e *ast.StringExpression) ir.Expr
func (*Compiler) VisitSwapStatement ¶
func (compiler *Compiler) VisitSwapStatement(_ *ast.SwapStatement) ir.Stmt
func (*Compiler) VisitSwitchStatement ¶
func (compiler *Compiler) VisitSwitchStatement(_ *ast.SwitchStatement) ir.Stmt
func (*Compiler) VisitTransactionDeclaration ¶
func (compiler *Compiler) VisitTransactionDeclaration(_ *ast.TransactionDeclaration) ir.Stmt
func (*Compiler) VisitUnaryExpression ¶
func (compiler *Compiler) VisitUnaryExpression(_ *ast.UnaryExpression) ir.Expr
func (*Compiler) VisitVariableDeclaration ¶
func (compiler *Compiler) VisitVariableDeclaration(declaration *ast.VariableDeclaration) ir.Stmt
func (*Compiler) VisitVoidExpression ¶ added in v0.27.1
func (compiler *Compiler) VisitVoidExpression(_ *ast.VoidExpression) ir.Expr
func (*Compiler) VisitWhileStatement ¶
func (compiler *Compiler) VisitWhileStatement(_ *ast.WhileStatement) ir.Stmt
Click to show internal directories.
Click to hide internal directories.