14 lines
447 B
GLSL
Executable File
14 lines
447 B
GLSL
Executable File
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
|
|
|
|
import os
|
|
import freeflowuniverse.herolib.core.codeparser
|
|
import freeflowuniverse.herolib.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}'))
|