Crate wander

Source
Expand description

This module is an implementation of the Wander language.

Modules§

identifier
Contains the defition of Identifiers. This code is mostly taken from Ligature, but I don’t want to add a dependency on Ligature at the moment or vice-versa.

Structs§

EpsilonChecker
A TypeChecker that does nothing, everything passes.
HostFunctionBinding
struct describing a HostFunction.
HostValue
A value of a type provided by the host application that can be accessed via Wander. Note it cannot be accessed by Wander directly, only through HostFunctions.
Introspection
Structure used for debugging or inspecting code.
NoHostType
This is a dummy type you can use when you don’t need a HostType.
PartialApplication
A struct represting a partially applied function. The function can be a Lambda or a HostFunction.
WanderError
An error that occurs while running a Wander script.

Enums§

WanderValue
Values in Wander programs used for Wander’s implementation and interfacing between Wander and the host application.

Traits§

HostFunction
A trait representing a function exported from the hosting application that can be called from Wander.
HostType
A combination of all the traits needed to implement a HostType.
TypeChecker
A trait for the pluggable type checker used by Wander.

Functions§

introspect
Run a Wander script with the given Bindings.
run
Run a Wander script with the given Bindings.
write_float
Write float.
write_integer
Write integer.
write_string
Escape a String value.

Type Aliases§

TokenTransformer
Type alias used for TokenTransformers.