Documentation ¶
Index ¶
- type Compiler
- func (compiler *Compiler) Compile() error
- func (compiler *Compiler) ConvertWat2Wasm(outputFilePath string)
- func (compiler *Compiler) WriteJsonFile(outputFilePath string)
- func (compiler *Compiler) WriteOutputToBuffer(outputBuffer *bytes.Buffer) (int, error)
- func (compiler *Compiler) WriteWatFile(outputFilePath string)
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
Compiler is used to transpile .ygl source files to wasm
func NewFromFile ¶
func NewFromString ¶
func (*Compiler) ConvertWat2Wasm ¶
ConvertWat2Wasm converts a .wat file into a .wasm file and writes a .wasm file at the specified path
func (*Compiler) WriteJsonFile ¶
func (*Compiler) WriteOutputToBuffer ¶
WriteOutputToBuffer copies the output webassembly text buffer to another buffer, returns the amount of bytes written
func (*Compiler) WriteWatFile ¶
WriteWatFile writes the code generated webassembly into a .wat file at the specified path
Click to show internal directories.
Click to hide internal directories.