Enum syzlang_parser::token::Token
source · pub enum Token {
}
Expand description
All the different tokens we divide the language into
Variants§
Include
Include a C header file
Incdir
Includes a directory of C header files
Resource
Resource keyword indicating a resource is being declared
Type
Type keyword, indicating a type being declared
Define
Define statement indicating a C macro expression is coming next
Meta
Meta keyword, next entry can be some meta information about the file
CrocOpen
Char: <
CrocClose
Char: >
ParenOpen
Char: (
ParenClose
Char: )
BracketOpen
Char: }
BracketClose
Char: }
SquareOpen
Char: [
SquareClose
Char: ]
Colon
Char: :
Comma
Char: ,
Newline
Equal
Char: =
Dollar
Char: $
Comment(String)
The text has been processed as a comment, because it started with ‘#’
String(String)
Some string enclosed in double quotes
Name(String)
Some identifier we didn’t match to any keyword
Char(char)
Character enclosed in single quotes
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Token
impl<'de> Deserialize<'de> for Token
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Token
impl PartialEq for Token
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more