Enum oftlisp::reader::lexer::Lexeme [] [src]

pub enum Lexeme<'a> {
    BracketClose,
    BracketOpen,
    Comment(usize, &'a str),
    Dot,
    ParenClose,
    ParenOpen,
    Quote,
    Quasiquote,
    String(Gc<String>),
    Symbolish(&'a str),
    Unquote(bool),
}

The unit of lexical syntax.

Variants

An closing bracket.

An opening bracket.

A comment. The numeric parameter is the number of "extra" semicolons used.

For example, the comment

;; foo

would become:

Lexeme::Comment(1, " foo")

A center dot (U+2022), which is used for dotted pairs.

An closing parenthesis.

An opening parenthesis.

A single quote.

A backtick.

A string.

A symbol or number. The disambiguation is performed when constructing the CST (the Vec<Value>).

A comma, possibly followed by an at-sign. The value is true if ,@ was read, false for just ,.

Trait Implementations

impl<'a> Clone for Lexeme<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Lexeme<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Eq for Lexeme<'a>
[src]

impl<'a> PartialEq for Lexeme<'a>
[src]

[src]

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

[src]

This method tests for !=.

impl<'a> Display for Lexeme<'a>
[src]

[src]

Formats the value using the given formatter. Read more