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. If placed in if-statement they MUST be surrounded by braces.

compiler
module mildew.compiler

This module implements the bytecode compiler ──────────────────────────────────────────────────────────────────────────────── Copyright (C) 2021 pillager86.rf.gd

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 Interpreter can either walk the tree to execute code (deprecated), or compile the tree into bytecode and run it with the VirtualMachine.

parser
module mildew.parser

This module implements the Parser struct, which generates Nodes from tokens. The resulting syntax tree is processed by Interpreter, or Interpreter and 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. Interpreter and Compiler implements all of these interfaces, although Interpreter will soon not implement these interfaces.

vm
module mildew.vm

Convenience import for VM functionality.