feat: expression

This commit is contained in:
2025-12-27 03:43:19 -05:00
parent bf0edfc593
commit 0e185fbf41
7 changed files with 50 additions and 15 deletions

View File

@@ -69,7 +69,7 @@ func getToken(i *iterator.Iterator[rune]) (*token.Token, error) {
return token.NewAtom(string(atom), index), nil
}
return nil, fmt.Errorf("unknown character '%v'", letter)
return nil, fmt.Errorf("unknown character '%v'", string(letter))
}
// Parses a list of runes into tokens. All error encountered are returned, as well.