Enum lexx::Token [] [src]

pub enum Token {
    Eq,
    Lt,
    Le,
    EqEq,
    Ne,
    Ge,
    Gt,
    AndAnd,
    OrOr,
    Not,
    Tilde,
    BinOp(BinOpToken),
    BinOpEq(BinOpToken),
    At,
    Dot,
    DotDot,
    DotDotDot,
    Comma,
    Semi,
    Colon,
    ModSep,
    RArrow,
    LArrow,
    FatArrow,
    Pound,
    Dollar,
    Question,
    OpenDelim(DelimToken),
    CloseDelim(DelimToken),
    Literal(LitOption<Name>),
    Ident(Ident),
    Underscore,
    Lifetime(Ident),
    Interpolated(Nonterminal),
    DocComment(Name),
    MatchNt(IdentIdent),
    SubstNt(Ident),
    Whitespace,
    Comment,
    Shebang(Name),
    Eof,
}

Variants

An opening delimiter, eg. {

A closing delimiter, eg. }

Doc comment

Parse a nonterminal (name to bind, name of NT)

A syntactic variable that will be filled in by macro expansion.

Whitespace

Comment

Methods

impl Token
[src]

Returns true if the token starts with '>'.

Returns true if the token can appear at the start of an expression.

Returns true if the token is any literal

Returns true if the token is an identifier.

Returns true if the token is a documentation comment.

Returns true if the token is interpolated.

Returns true if the token is an interpolated path.

Returns true if the token is a lifetime.

Returns true if the token is either the mut or const keyword.

Returns true if the token is a given keyword, kw.

Returns true if the token is either a strict or reserved keyword.

Returns true if the token is a strict keyword.

Returns true if the token is a keyword reserved for possible future use.

Trait Implementations

impl Debug for Token
[src]

impl Clone for Token
[src]

impl Decodable for Token
[src]

impl Encodable for Token
[src]

impl PartialEq<Token> for Token
[src]

impl Eq for Token
[src]

impl Hash for Token
[src]