Enum server::parse::token::Token [] [src]

pub enum Token {
    Word(String),
    Literal(Lit),
    Semi,
    Dot,
    Comma,
    ParenOp,
    ParenCl,
    ADel,
    Equ,
    GThan,
    SThan,
    GEThan,
    SEThan,
    NEqu,
    Add,
    Sub,
    Div,
    Mod,
    Star,
    Whitespace,
    Unknown,
}

A token: Everything the lexer can produce

Variants

Word
Literal
Semi
Dot
Comma
ParenOp
ParenCl
ADel
Equ
GThan
SThan
GEThan
SEThan
NEqu
Add
Sub
Div
Mod
Star
Whitespace
Unknown

Trait Implementations

Derived Implementations

impl PartialEq for Token

fn eq(&self, __arg_0: &Token) -> bool

fn ne(&self, __arg_0: &Token) -> bool

impl Clone for Token

fn clone(&self) -> Token

fn clone_from(&mut self, source: &Self)

impl Debug for Token

fn fmt(&self, __arg_0: &mut Formatter) -> Result