FIX messed up comments in tokens.rs
This commit is contained in:
parent
a1f656199c
commit
ff416f0f40
1 changed files with 4 additions and 4 deletions
|
|
@ -4,16 +4,16 @@ use std::fmt;
|
|||
/// struct that contains a single token
|
||||
pub struct Token<'a> {
|
||||
// the type
|
||||
pub lexeme: &'a str,
|
||||
pub token_type: TokenType,
|
||||
|
||||
// the actual part of the code that resulted in this token
|
||||
pub literal: Box<dyn Any>,
|
||||
pub lexeme: &'a str,
|
||||
|
||||
// numeric (ie 1,2, 1.0 etc) and alphanumeric (any quoted text) values
|
||||
pub line: usize,
|
||||
pub literal: Box<dyn Any>,
|
||||
|
||||
// the line that contains the code for this token instance
|
||||
pub token_type: TokenType,
|
||||
pub line: usize,
|
||||
}
|
||||
|
||||
impl Token<'_> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue