pub enum Token {
Keyword(Keyword),
String(Vec<u8>),
Number(f64),
Symbol(Vec<u8>),
}
Expand description
A part of a BASIC statement.
Variants§
Keyword(Keyword)
A BASIC keyword
String(Vec<u8>)
A string literal within quotes.
Number(f64)
A number, encoded as the number in ASCII followed by its binary representation.
Symbol(Vec<u8>)
Literal data. Can be used to write any other kind of data to the program.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
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