Module texlang::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

  • Serialization and deserialization of VMs

Macros

  • 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

Traits

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