Implemented runes

This commit is contained in:
Eduard Urbach 2024-07-22 15:32:16 +02:00
parent eaeeba495e
commit f7645104fb
Signed by: eduard
GPG key ID: 49226B848C78F6C8
11 changed files with 88 additions and 27 deletions

View file

@ -89,7 +89,7 @@ func Parse(tokens []token.Token) *Expression {
continue
}
if t.Kind == token.Identifier || t.Kind == token.Number || t.Kind == token.String {
if t.Kind == token.Identifier || t.Kind == token.Number || t.Kind == token.String || t.Kind == token.Rune {
if cursor != nil {
node := NewLeaf(t)
cursor.AddChild(node)