[−][src]Enum tremor_script::lexer::Token
A token in the source ( file, byte stream ), to be emitted by the Lexer
The LALRPOP grammar uses these tokens and this custom lexer
as it does not have a facility to ignore special tokens, to
easily disambiguate tokens ( eg: ':' vs '::' vs ':=' ), nor
to inject magic tokens ( bad token ) or support lexical streams
( different token streams drive by users, eg: emit ignorable tokens when
syntax highlighting or error highlighting
Variants
Whitespace(&'input str)
Ignorable when parsing, significant when highlighting
a new line
SingleLineComment(&'input str)
a singe line comment
ModComment(&'input str)
a mod comment
DocComment(&'input str)
a doc comment
Bad(String)
a BAD TOKEN
an ident
the $
sign
a .
null
BoolLiteral(bool)
a boolean
IntLiteral(i64)
an integer
an float
a test literal
an heredoc
a double quote "
a string literal
the let
keywrod
the const
keyword
the match
keyword
the case
keyword
the of
keyword
the when
keyword
the end
keyword
the patch
keyword
the insert
keyword
the upsert
keyword
the update
keyword
the erase
keyword
the move
keyword
the copy
keyword
the merge
keyword
the drop
keyword
the default
keyword
the emit
keyword
the for
keyword
the event
keyword
the state
keyword
the present
keyword
the absent
keyword
the fun
keyword
the intrinsic
keyword
the mod
keyword
the _
token
the recure
token
the \
backslash
the ,
comma
the not
keyword
bitwise not !
the and
keyword
the or
keyword
the xor
keyword
bitwise and &
bitwise or |
bitwise xor ^
equal =
double equal ==
not equal !=
tilde equal ~=
tilde ~
greater than equal >=
grater than >
lower than equal <=
lower then <
Right bit shift signed >>
Right bit shift unsigned >>>
Left bit shift <<
Add +
Substract -
Multiply *
Divide /
Moduly %
Colon :
Double coilon ::
Effector array =>
Semicolon ;
Left Paren %(
Left Paren (
Right Paren )
Left brace {
Left pattern Bracket %{
Right Brace }
Left Bracket [
Left pattern Bracket %[
Right bracket ]
End of stream token
The select
keyword
The from
keyword
The where
keyword
The with
keyword
The order
keyword
the group
keyword
The by
keyword
The having
keyword
The into
keyword
The create
keyword
The tumbling
keyword
The sliding
keyword
The window
keyword
The stream
keyword
The operator
keyword
The script
keyword
The set
keyword
The each
keyword
The define
keyword
The args
keyword
The use
keyword
The as
keyword
Preprocessor directives
Config Directive
Methods
impl<'input> Token<'input>
[src]
Trait Implementations
impl<'input> Clone for Token<'input>
[src]
impl<'input> Debug for Token<'input>
[src]
impl<'input> Display for Token<'input>
[src]
impl<'input> PartialEq<Token<'input>> for Token<'input>
[src]
impl<'input> StructuralPartialEq for Token<'input>
[src]
Auto Trait Implementations
impl<'input> RefUnwindSafe for Token<'input>
impl<'input> Send for Token<'input>
impl<'input> Sync for Token<'input>
impl<'input> Unpin for Token<'input>
impl<'input> UnwindSafe for Token<'input>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,