Trait parol::analysis::k_tuple::TerminalMappings

source ·
pub trait TerminalMappings<T> {
    // Required methods
    fn eps() -> T;
    fn end() -> T;
    fn is_eps(&self) -> bool;
    fn is_end(&self) -> bool;
    fn is_inv(&self) -> bool;
}
Expand description

Common functions needed for terminal handling

Required Methods§

source

fn eps() -> T

Create an epsilon representation

source

fn end() -> T

Create an end-of-input representation

source

fn is_eps(&self) -> bool

Check for epsilon

source

fn is_end(&self) -> bool

Check for end-of-input

source

fn is_inv(&self) -> bool

Check for invalid (i.e. unassigned) terminal

Object Safety§

This trait is not object safe.

Implementors§