Documentation ¶
Overview ¶
Package acc implements the "addition chain calculator" language: a domain-specific language (DSL) for addition chain computation.
Index ¶
- func Build(p *ir.Program) (*ast.Chain, error)
- func Decompile(p addchain.Program) (*ir.Program, error)
- func LoadFile(filename string) (p *ir.Program, err error)
- func LoadReader(filename string, r io.Reader) (*ir.Program, error)
- func LoadString(src string) (*ir.Program, error)
- func Save(filename string, p *ir.Program) (err error)
- func String(p *ir.Program) (string, error)
- func Translate(c *ast.Chain) (*ir.Program, error)
- func Write(w io.Writer, p *ir.Program) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadReader ¶
LoadReader is a convenience for loading and evaluating an addition chain script.
func LoadString ¶
LoadString is a convenience for loading and evaluating an addition chain script from a string.
func String ¶
String is a convenience for obtaining a program as an addition chain script in string form.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package ast declares abstract syntax tree types for acc programs.
|
Package ast declares abstract syntax tree types for acc programs. |
Package ir declares an intermediate representation for acc programs.
|
Package ir declares an intermediate representation for acc programs. |
Package parse implements a parser for acc programs.
|
Package parse implements a parser for acc programs. |
Package pass implements analysis and processing passes on acc programs.
|
Package pass implements analysis and processing passes on acc programs. |
Package printer implements printing of acc AST nodes.
|
Package printer implements printing of acc AST nodes. |
Click to show internal directories.
Click to hide internal directories.