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§
- Default
Handlers - Execution
Input - Input type for execution primitives.
- Expanded
Stream - A TokenStream that performs expansion.
- Expansion
Input - Input type for expansion primitives.
- Parts
- Mutable references to different parts of the VM.
- Shutdown
Signal - A signal that the VM is shutting down.
- Unexpanded
Stream - 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.
- HasDefault
Built InCommands - States that implement this trait have a default set of built-in commands associated to them.
- Texlang
State - Implementations of this trait may be used as the state in a Texlang VM.
- Token
Stream - A stream of tokens generated on demand.