package
Version:
v0.0.0-...-c4f0eec
Opens a new window with list of versions in this module.
Published: Aug 21, 2014
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BasicCompiler struct{}
BasicCompiler is the default compiler used by Xslate
New creates a new BasicCompiler instance
Compile satisfies the compiler.Compiler interface. It accepts an AST
created by parser.Parser, and returns vm.ByteCode or an error
Compiler is the interface to objects that can convert AST trees to
actual Xslate Virtual Machine bytecode (see vm.ByteCode)
type NaiveOptimizer struct{}
NaiveOptimizer is the default ByteCode optimizer
Optimize modifies the ByteCode in place to an optimized version
Optimizer is the interface of things that can optimize the ByteCode
Source Files
¶
Click to show internal directories.
Click to hide internal directories.