14 lines
185 B
Go
14 lines
185 B
Go
package lexer
|
|
|
|
type Lexer struct {
|
|
input string
|
|
position int
|
|
readPosition int
|
|
ch byte
|
|
}
|
|
|
|
func New(input string) *Lexer {
|
|
l := &Lexer{input: input}
|
|
return l
|
|
}
|