diff --git a/src/scanner.rs b/src/scanner.rs index 64d147c..935d555 100644 --- a/src/scanner.rs +++ b/src/scanner.rs @@ -87,6 +87,7 @@ impl Scanner { '+' => self.add_token(TokenType::Plus), ';' => self.add_token(TokenType::Semicolon), '*' => self.add_token(TokenType::Star), + '@' => self.add_token(TokenType::Address), // Slash is a special case as it may be a line comment '/' => { if self.is_match('/') { diff --git a/src/tokens.rs b/src/tokens.rs index d5c3d01..98a413d 100644 --- a/src/tokens.rs +++ b/src/tokens.rs @@ -5,6 +5,7 @@ pub enum TokenType { RightParen, LeftBrace, RightBrace, + Address, Comma, Dot, Minus,