This commit is contained in:
2024-12-25 11:44:17 +01:00
parent 27ef87f9c7
commit fbae8eeb2a
38 changed files with 1021 additions and 35 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import os
import freeflowuniverse.crystallib.core.codeparser
import freeflowuniverse.crystallib.core.codemodel { Struct }
code_path := '${os.dir(@FILE)}/embedding.v'
code := codeparser.parse_v(code_path)!
assert code.len == 2
assert code[0] is Struct
embedder_struct := code[0] as Struct
println(embedder_struct.fields.map('${it.name}: ${it.typ.symbol}'))