Documentation ¶
Index ¶
- Constants
- func CompileModule(input antlr.CharStream) (m *binary.Module, err error)
- func CompileModuleFile(filename string) (*binary.Module, error)
- func CompileModuleStr(s string) (*binary.Module, error)
- type Action
- type Assertion
- type BinaryModule
- type ErrorListener
- type Meta
- type QuotedModule
- type Register
- type Script
- type SemanticError
- type SyntaxError
- type SyntaxErrors
- type ValidationError
- type WatModule
Constants ¶
View Source
const ( ActionInvoke = 1 ActionGet = 2 )
View Source
const ( AssertReturn = 1 AssertTrap = 2 AssertExhaustion = 3 AssertMalformed = 4 AssertInvalid = 5 AssertUnlinkable = 6 )
Variables ¶
This section is empty.
Functions ¶
func CompileModule ¶
func CompileModule(input antlr.CharStream) (m *binary.Module, err error)
Types ¶
type Action ¶
type Action struct { Kind byte ModuleName string ItemName string Expr []binary.Instruction }
type BinaryModule ¶
type ErrorListener ¶
type ErrorListener struct { antlr.DefaultErrorListener // contains filtered or unexported fields }
func (*ErrorListener) GetErrors ¶
func (listener *ErrorListener) GetErrors(input antlr.CharStream) error
func (*ErrorListener) SyntaxError ¶
func (listener *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
type QuotedModule ¶
type Script ¶
type Script struct {
Cmds []interface{}
}
https://github.com/WebAssembly/spec/tree/master/interpreter#scripts
func CompileScript ¶
func CompileScript(input antlr.CharStream) (s *Script, err error)
func CompileScriptStr ¶
type SemanticError ¶
type SemanticError struct {
// contains filtered or unexported fields
}
func (*SemanticError) Error ¶
func (e *SemanticError) Error() string
func (*SemanticError) FillDetail ¶
func (e *SemanticError) FillDetail(input antlr.CharStream)
type SyntaxError ¶
type SyntaxError struct {
// contains filtered or unexported fields
}
func (SyntaxError) Error ¶
func (err SyntaxError) Error() string
type SyntaxErrors ¶
type SyntaxErrors []SyntaxError
func (SyntaxErrors) Error ¶
func (errs SyntaxErrors) Error() string
func (SyntaxErrors) FillDetail ¶
func (errs SyntaxErrors) FillDetail(input antlr.CharStream)
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
func (*ValidationError) FillDetail ¶
func (e *ValidationError) FillDetail(input antlr.CharStream)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.