12345678910111213141516171819202122232425262728293031323334 |
- package token
- type TokenType string
- type Token struct {
- Type TokenType
- Literal string
- }
- const (
- ILLEGAL = "ILLEGAL"
- EOF = "EOF"
- // Identifiers + literals.
- IDENT = "IDENT" // add, foobar, x, y, ...
- INT = "INT" // 123456, ...
- // Operators.
- ASSIGN = "="
- PLUS = "+"
- // Delimiters.
- COMMA = ","
- SEMICOLON = ";"
- LPAREN = "("
- RPAREN = ")"
- LBRACE = "{"
- RBRACE = "}"
- // Keywords
- FUNCTION = "FUNCTION"
- LET = "LET"
- )
|