Tokens - Address ('@') token for loop labels
This commit is contained in:
parent
48b86d5087
commit
f3b2552679
2 changed files with 2 additions and 0 deletions
|
@ -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('/') {
|
||||
|
|
|
@ -5,6 +5,7 @@ pub enum TokenType {
|
|||
RightParen,
|
||||
LeftBrace,
|
||||
RightBrace,
|
||||
Address,
|
||||
Comma,
|
||||
Dot,
|
||||
Minus,
|
||||
|
|
Loading…
Reference in a new issue