Enum kailua_syntax::lex::Punct [] [src]

pub enum Punct {
    Plus,
    Dash,
    Star,
    Slash,
    Percent,
    Caret,
    Hash,
    EqEq,
    TildeEq,
    LtEq,
    GtEq,
    Lt,
    Gt,
    Eq,
    Amp,
    Tilde,
    Pipe,
    LtLt,
    GtGt,
    SlashSlash,
    LParen,
    RParen,
    LBrace,
    RBrace,
    LBracket,
    RBracket,
    Semicolon,
    Colon,
    ColonColon,
    Comma,
    Dot,
    DotDot,
    DotDotDot,
    DashDashHash,
    DashDashV,
    DashDashColon,
    DashDashGt,
    Ques,
    Bang,
    Newline,
}

A punctuation.

This includes Kailua-specific punctuations, which are only generated in the meta block (marked as [M] below). Some of them are also only generated after a particular Lua version (marked as [5.x+] below).

Variants

+.

-.

*.

/.

%.

^.

#.

==.

~=.

<=.

>=.

<.

>.

=.

&. [5.3+]

~. [5.3+]

|. [5.3+ or M]

<<. [5.3+]

>>. [5.3+]

//. [5.3+]

(.

).

{.

}.

[.

].

;.

:.

::. [5.2+]

,.

..

...

....

--#. [M]

--v. [M]

--:. [M]

-->. [M]

?. [M]

!. [M]

A newline. Only generated at the end of the meta block.

Trait Implementations

impl Copy for Punct
[src]

impl Clone for Punct
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Punct
[src]

Formats the value using the given formatter.

impl PartialEq for Punct
[src]

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

This method tests for !=.

impl Eq for Punct
[src]

impl Localize for Punct
[src]