mirror of
https://github.com/Fluffy-Bean/GoLox.git
synced 2024-12-26 09:06:05 +00:00
oops
This commit is contained in:
parent
a63c07d5bf
commit
0c810debb2
|
@ -32,10 +32,10 @@ func (s *Scanner) scanToken() {
|
|||
c := s.advance()
|
||||
switch c {
|
||||
case '(':
|
||||
s.addToken(LeftBrace)
|
||||
s.addToken(LeftParen)
|
||||
break
|
||||
case ')':
|
||||
s.addToken(RightBrace)
|
||||
s.addToken(RightParen)
|
||||
break
|
||||
case '{':
|
||||
s.addToken(LeftBrace)
|
||||
|
|
Loading…
Reference in a new issue