GoLox/scanner.go
2024-09-22 17:50:20 +01:00

22 lines
249 B
Go

package main
import (
"fmt"
)
type Scanner struct {
tokens []Token
}
func (s *Scanner) GetTokens() []Token {
return s.tokens
}
func (s *Scanner) Parse(source string) {
fmt.Println(source)
}
func NewScanner() *Scanner {
return &Scanner{}
}