1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v: split the interpreter to cmd/tools/vinterpret.v

This commit is contained in:
Delyan Angelov
2021-12-11 23:51:42 +02:00
parent adf353702e
commit 9b7a50b1a2
8 changed files with 111 additions and 88 deletions

View File

@@ -98,7 +98,7 @@ fn (app App) gen_api_for_module_in_os(mod_name string, os_name string) string {
tmpname := '/tmp/${mod_name}_${os_name}.c'
prefs, _ := pref.parse_args([], ['-os', os_name, '-o', tmpname, '-shared', mpath])
mut b := builder.new_builder(prefs)
b.compile_c()
builder.compile_c(mut b)
mut res := []string{}
for f in b.parsed_files {
for s in f.stmts {