feat: stuff

This commit is contained in:
2025-12-26 01:59:56 -05:00
parent fa44051dec
commit 11e7f70625
6 changed files with 74 additions and 76 deletions

View File

@@ -1,17 +1,27 @@
package tokenizer
// All tokens in the pseudo-lambda language.
type TokenType int
const (
// Denotes the '(' token.
TokenOpenParen TokenType = iota
// Denotes the ')' token.
TokenCloseParen
// Denotes an alpha-numeric variable.
TokenVariable
// Denotes the '/' token.
TokenSlash
// Denotes the '.' token.
TokenDot
)
// A representation of a token in source code.
type Token struct {
// Where the token begins in the source text.
Index int
Type TokenType
// What type the token is.
Type TokenType
// The value of the token.
Value string
}