Module vm

Module vm 

Source
Expand description

The Texlang virtual machine (VM).

This module contains the definition of the runtime VM, various input streams that wrap the VM and the main function that is used to run Texlang. See the VM documentation in the Texlang book for full documentation.

Modules§

serde
Serialization and deserialization of VMs

Macros§

implement_has_component
This macro is for implementing the HasComponent trait in the special (but common) case when the state is a struct and the component is a direct field of the struct.

Structs§

DefaultHandlers
ExecutionInput
Input type for execution primitives.
ExpandedStream
A TokenStream that performs expansion.
ExpansionInput
Input type for expansion primitives.
Parts
Mutable references to different parts of the VM.
ShutdownSignal
A signal that the VM is shutting down.
UnexpandedStream
Stream that returns input tokens without performing expansion.
VM
The Texlang virtual machine.

Traits§

Handlers
Implementations of this trait determine how the VM handles non-execution-command tokens.
HasComponent
Helper trait for implementing the component pattern in Texlang.
HasDefaultBuiltInCommands
States that implement this trait have a default set of built-in commands associated to them.
TexlangState
Implementations of this trait may be used as the state in a Texlang VM.
TokenStream
A stream of tokens generated on demand.