Compare commits

..

No commits in common. "e89e089af27e1997d8f17b9e7e0e8b0921581f97" and "27211247b7e5b3faf098af5afaf0c5532752e372" have entirely different histories.

2 changed files with 2 additions and 17 deletions

View File

@ -1,8 +1,5 @@
## Crafting Interpreters
## Notes
https://notes.velouria.dev/Reading/Crafting-Interpreters
### Running
```

View File

@ -81,14 +81,7 @@ class Scanner {
addToken(SEMICOLON);
break;
case '*':
if (match('/') && !isAtEnd()) {
advance();
} else if (isAtEnd()) {
break;
}
else {
addToken(STAR);
}
addToken(STAR);
break;
case '!':
addToken(match('=') ? BANG_EQUAL : BANG);
@ -105,12 +98,7 @@ class Scanner {
if (match('/')) {
while (peek() != '\n' && !isAtEnd())
advance();
}
else if (match('*')) {
while (peek() != '*')
advance();
}
else {
} else {
addToken(SLASH);
}
break;