feat/schema: add ast and test

This commit is contained in:
mae
2026-01-27 21:57:38 -06:00
parent 5f9467e851
commit 1fd09335cd
9 changed files with 198 additions and 492 deletions

18
schema/schema_test.go Normal file
View File

@@ -0,0 +1,18 @@
package schema
import (
"fmt"
"testing"
)
func TestParser(t *testing.T) {
test := "(test)" +
"(test a)" +
"(test a b)" +
"(test \"a\" \"b\")" +
"(+ 0b1010 -0xDEAD_BEEF)" +
"(. a b c d e f g)" +
"(test (test1 \"hi\") (test2 \"hi 2\"))" +
"(test (. \"awa\" \"awawa\" \"awawawa\" \"awawawawa\"))"
fmt.Println(CreateSchema(test))
}