feat: tokenizer
This commit is contained in:
17
pkg/tokenizer/token.go
Normal file
17
pkg/tokenizer/token.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package tokenizer
|
||||
|
||||
type TokenType int
|
||||
|
||||
const (
|
||||
TokenOpenParen TokenType = iota
|
||||
TokenCloseParen
|
||||
TokenAtom
|
||||
TokenSlash
|
||||
TokenDot
|
||||
)
|
||||
|
||||
type Token struct {
|
||||
Index int
|
||||
Type TokenType
|
||||
Value string
|
||||
}
|
||||
Reference in New Issue
Block a user