mildew

Modules

binder
module mildew.binder

Contains functions to mixin to simplify code reuse. For these to work, the parameters of a native function must be called context, thisObj, args, and nfe. They should not be placed in inner scopes or under if statements.

compiler
module mildew.compiler

This module implements the bytecode compiler

environment
module mildew.environment

This module implements the Environment class.

exceptions
module mildew.exceptions

This module implements the exception classes that can be thrown by the script. These should be caught and printed to provide meaningful information about why an exception was thrown while parsing, compiling, or executing a script.

interpreter
module mildew.interpreter

This module implements the Interpreter class, the main class used by host applications to run scripts

lexer
module mildew.lexer

This module implements the Token and Lexer structs

nodes
module mildew.nodes

This module implements the expression and statement node classes, which are used internally as a syntax tree. The Parser generates the tree and the Compiler traverses it to emit bytecode into Chunks.

parser
module mildew.parser

This module implements the Parser struct, which generates Nodes from tokens. The resulting syntax tree is processed by the Compiler.

stdlib
module mildew.stdlib
types
module mildew.types

This module is for convenient use by the scripting language internals. Host applications should only import func.d, object.d, and any.d most of the time.

util
module mildew.util
visitors
module mildew.visitors

This module defines the interfaces that work with statement and expression nodes. Compiler implements these interfaces.

vm
module mildew.vm

Convenience import for VM functionality.