This commit is contained in:
Michał 2024-09-23 12:34:53 +01:00
parent a63c07d5bf
commit 0c810debb2

View file

@ -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)