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