please help

This commit is contained in:
2024-08-10 16:49:47 +02:00
parent fec3c39de2
commit 459c7f47cd
6 changed files with 118 additions and 42 deletions
+17
View File
@@ -0,0 +1,17 @@
package parser
import (
"github.com/wyst-lang/wyst/tokenizer"
)
func Parse(code string, rule Rule) ([]AstNode, tokenizer.State, error) {
tokens, state, _ := tokenizer.Tokenize(code)
var ast = []AstNode{}
for i := 0; i < len(tokens); i++ {
// token := tokens[i]
if rule.Inner == (String{""}) {
}
}
return ast, state, nil
}