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,7 +1,6 @@
package main
import (
"errors"
"fmt"
"os"
"time"
@@ -26,10 +25,8 @@ func main() {
cli.HandleError(err)
// Parse tokens.
tokens, fails := tokenizer.GetTokens([]rune(input))
if len(fails) > 0 {
cli.HandleError(errors.Join(fails...))
}
tokens, err := tokenizer.GetTokens([]rune(input))
cli.HandleError(err)
logger.Info("Parsed tokens.", "tokens", tokens)
// Turn tokens into syntax tree.