[][src]Enum rust_forth_compiler::ForthError

pub enum ForthError {
    UnknownError,
    UnknownToken(String),
    NumberStackUnderflow,
    LoopStackUnderflow,
    ScratchStackUnderflow,
    InvalidCellOperation,
    InvalidSyntax(String),
    MissingSemicolonAfterColon,
    MissingCommandAfterColon,
    SemicolonBeforeColon,
    UnhandledTrap,
    RanOutOfGas,
    InternalNumericOverflow,
}

This Enum lists the errors that the Forth Interpreter might return

Variants

UnknownError
UnknownToken(String)
NumberStackUnderflow
LoopStackUnderflow
ScratchStackUnderflow
InvalidCellOperation
InvalidSyntax(String)
MissingSemicolonAfterColon
MissingCommandAfterColon
SemicolonBeforeColon
UnhandledTrap
RanOutOfGas
InternalNumericOverflow

Trait Implementations

impl From<StackMachineError> for ForthError[src]

Convert StackMachineError to a ForthError so our Interpreter functions can return a single Error type.

impl From<ForthError> for i32[src]

Helper to convert ForthError codes to numeric codes for exit()

impl Debug for ForthError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]