feat: stuff
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user