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
Plus
+
.
Dash
-
.
Star
*
.
Slash
/
.
Percent
%
.
Caret
^
.
Hash
#
.
EqEq
==
.
TildeEq
~=
.
LtEq
<=
.
GtEq
>=
.
Lt
<
.
Gt
>
.
Eq
=
.
Amp
&
. [5.3+]
Tilde
~
. [5.3+]
Pipe
|
. [5.3+ or M]
LtLt
<<
. [5.3+]
GtGt
>>
. [5.3+]
SlashSlash
//
. [5.3+]
LParen
(
.
RParen
)
.
LBrace
{
.
RBrace
}
.
LBracket
[
.
RBracket
]
.
Semicolon
;
.
Colon
:
.
ColonColon
::
. [5.2+]
Comma
,
.
Dot
.
.
DotDot
..
.
DotDotDot
...
.
DashDashHash
--#
. [M]
DashDashV
--v
. [M]
DashDashColon
--:
. [M]
DashDashGt
-->
. [M]
Ques
?
. [M]
Bang
!
. [M]
Newline
A newline. Only generated at the end of the meta block.
Trait Implementations
impl Copy for Punct
[src]
impl Clone for Punct
[src]
fn clone(&self) -> Punct
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Punct
[src]
impl PartialEq for Punct
[src]
fn eq(&self, __arg_0: &Punct) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.