This commit is contained in:
2024-08-09 21:05:03 +02:00
parent 370106b67d
commit fec3c39de2
6 changed files with 105 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"fmt"
"github.com/wyst-lang/wyst/token"
)
func main() {
tokens, err := Tokenize("test 123", token.RULES_TOP)
if err != nil {
fmt.Printf("Syntax error at %s \n", err)
return
}
for i := 0; i < len(tokens); i++ {
fmt.Printf("%s\n", tokens[i])
}
}