Adding the New function to create a lexer

This commit is contained in:
2026-03-21 21:07:14 +01:00
parent 29820d582e
commit a4da8fa11d
+5
View File
@@ -6,3 +6,8 @@ type Lexer struct {
readPosition int
ch byte
}
func New(input string) *Lexer {
l := &Lexer{input: input}
return l
}