[][src]Crate rune

Rune is a simple dynamic language for the runestick virtual machine.

You can take it for a spin with rune-cli.

Re-exports

pub use crate::runtime::termcolor;

Modules

ast

AST for the Rune language.

Structs

Lexer

Lexer for the rune language.

Options

Compiler options.

ParseAll

The result from parsing a string.

Parser

Parser for the rune language.

Runtime

A rune runtime, which simplifies embedding and using rune.

Source

A parsed input coupled with it's source.

Span

A span corresponding to a range in the source file being parsed.

Token

A single token used during parsing.

Warnings

Compilation warnings.

Enums

CompileError

Error when encoding AST.

Error

Error capable of collecting all error types emitted by this crate.

Kind

The kind of the token.

ParseError

Error when parsing.

Warning

Compilation warning.

Traits

Resolve

A type that can be resolved to an internal value based on a source.

Functions

compile

Helper function to compile the given source.

parse_all

Parse the given input as the given type that implements [Parse][crate::traits::Parse].

Type Definitions

Result

Result alias used by this frontend.