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()
switch c {
case '(':
s.addToken(LeftBrace)
s.addToken(LeftParen)
break
case ')':
s.addToken(RightBrace)
s.addToken(RightParen)
break
case '{':
s.addToken(LeftBrace)