diff --git a/scanner.go b/scanner.go index 2d45c1c..6f27960 100644 --- a/scanner.go +++ b/scanner.go @@ -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)