Crate mini_lang

Source
Expand description

Mini Language

This crate provides an interface to use Mini Language as rust library.

For the documentation of the language itself, see README.md.

Structs§

EagerEval
The eager evaluator
LazyEval
The lazy evaluator
Program
List of define functions, variables, and expressions to print.
StdPrinter
The default printer implementation which prints to stdout.

Enums§

Expr
The expression tree.
MiniError
The error type for this crate.
Operator
The operator enum for expressions.

Traits§

Evaluator
The trait to provide kinds of evaluation (or compilation).
Printer
The printer to print evaluated value.

Functions§

execute
Execute the code by given evaluator and printer.

Type Aliases§

MiniResult
The result type for this crate.