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

jsgen: implement js backend

This commit is contained in:
Abdullah Atta
2020-04-16 02:16:49 +05:00
committed by GitHub
parent a3ab5df2ed
commit 6a186e8f11
21 changed files with 1592 additions and 313 deletions

View File

@@ -160,6 +160,13 @@ fn parse_args(args []string) (&pref.Preferences, string) {
res.out_name = cmdline.option(args, '-o', '')
i++
}
'-b' {
b := pref.backend_from_string(cmdline.option(args, '-b', 'c')) or {
continue
}
res.backend = b
i++
}
else {
mut should_continue := false
for flag_with_param in list_of_flags_with_param {