mirror of
https://github.com/hazemKrimi/jack-compiler.git
synced 2026-05-01 17:48:57 +00:00
feat: tokenizer scaffolding
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package tokenizer
|
||||
|
||||
type TokenType int
|
||||
|
||||
const (
|
||||
KEYWORD TokenType = iota
|
||||
SYMBOL
|
||||
INT_CONST
|
||||
STR_CONST
|
||||
IDENTIFIER
|
||||
)
|
||||
|
||||
type Token struct {
|
||||
Value string
|
||||
Type TokenType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user