Enum liquid_compiler::Token[][src]

pub enum Token {
    Pipe,
    Dot,
    Colon,
    Comma,
    OpenSquare,
    CloseSquare,
    OpenRound,
    CloseRound,
    Question,
    Dash,
    Assignment,
    Identifier(String),
    StringLiteral(String),
    IntegerLiteral(i32),
    FloatLiteral(f64),
    BooleanLiteral(bool),
    DotDot,
    Comparison(ComparisonOperator),
    Or,
}

Variants

Methods

impl Token
[src]

Parses a token that can possibly represent a Value to said Value. Returns an Err if the token can not be interpreted as a Value.

Translates a Token to a Value, looking it up in the context if necessary

Trait Implementations

impl Clone for Token
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Token
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Token
[src]

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

This method tests for !=.

impl Display for Token
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Token

impl Sync for Token