Enum gluon_parser::lexer::Token [] [src]

pub enum Token<Id> {
    Ident(Id, IdentType),
    Operator(Id),
    String(String),
    Char(char),
    Int(i64),
    Byte(u8),
    Float(f64),
    DocComment(String),
    Let,
    And,
    In,
    Type,
    Match,
    With,
    If,
    Then,
    Else,
    Open(Delimiter),
    Close(Delimiter),
    Lambda,
    RightArrow,
    Colon,
    Dot,
    Comma,
    Pipe,
    Equal,
    OpenBlock,
    CloseBlock,
    Semi,
    EOF,
}

Variants

Methods

impl<Id> Token<Id>
[src]

Trait Implementations

impl<Id: Clone> Clone for Token<Id>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Id: PartialEq> PartialEq for Token<Id>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<Id: Debug> Debug for Token<Id>
[src]

Formats the value using the given formatter.

impl<Id> Display for Token<Id>
[src]

Formats the value using the given formatter.