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

1379 Commits

Author SHA1 Message Date
cfcc57f5d3 checker: remove unnecessary "no methods" error; builder: skip float.c.v with -nofloat 2021-09-13 18:14:26 +03:00
5b619b99c2 v.gen.js: Interfaces support, fix for error propagation & panic stacktraces (#11471) 2021-09-11 14:24:47 +03:00
ab3adf3346 checker: no longer allow automatic dereferncing in a = b 2021-09-09 20:21:01 +03:00
1a2d5f65fb builtin: add size_t.str() again (#11446) 2021-09-09 10:50:35 +03:00
4faa0f8487 v.checker: add checks for .free() methods 2021-09-09 09:54:06 +03:00
72089c4feb js: use prefixed names for functions and global symbols (#11387) 2021-09-08 20:30:46 +03:00
55451baa03 builtin: i32 alias 2021-09-08 14:49:02 +03:00
bef3390f36 builtin: fix compilation (#11445) 2021-09-08 14:19:21 +03:00
56ad5d72ef builtin: add .str method for i/usize (#11441) 2021-09-08 13:41:08 +03:00
e3b65092d6 parser: deprecate size_t (#11443) 2021-09-08 13:09:32 +03:00
cc8ee5fb84 all: introduce isize and usize (#11437) 2021-09-08 05:53:39 +03:00
bd10a63839 builtin: string interpolation: binary format support (#11421) 2021-09-07 00:12:54 +03:00
78c26e69cf builtin: fix the string.index_any method (#11310) 2021-09-06 15:06:37 +03:00
5181031480 builtin: check array.sort_with_compare() arg mismatch (#11385) 2021-09-04 15:02:05 +03:00
91f7be98d0 builtin.js.v: run vfmt 2021-09-03 14:13:36 +03:00
a4df418a68 js: support [export: 'AnotherName'] for FnDecl codegen (#11377) 2021-09-03 13:00:24 +03:00
08c517c966 strconv,v.gen.js: proper optionals returns, strconv compiles to the JS backend (#11364) 2021-09-03 12:16:07 +03:00
a9b705bfd8 js: fix printing, make builtins for result and option types behave correctly (#11336) 2021-08-30 20:47:18 +03:00
f44eb88a8d vfmt: fmt '!(a in/is b)' to 'a !in/is b' (#11335) 2021-08-30 09:45:36 +03:00
61ac7b671d js: add initial support for optional types, IfGuardExpr codegen for if (#11332) 2021-08-29 14:27:17 +03:00
118c5fdcd8 js: fix -stats compilation of tests, proper alias codegen (#11327) 2021-08-28 16:57:33 +03:00
cf4081e2dd all: more chdir/chmod fixes 2021-08-28 12:52:48 +03:00
bdf11d969a js: add basic support for running tests, fix string.replace_each (#11314) 2021-08-26 15:20:54 +03:00
109d5d5847 js: os now compiles to the JS backend, more builtins & minor codegen fixes (#11302) 2021-08-25 14:40:53 +03:00
d78e7e3b2b js: codegen fixes, W.I.P os availability for JS backend (#11281) 2021-08-23 14:25:02 +03:00
fde934cd93 builtin: optimize hex() (#11261) 2021-08-22 11:10:24 +03:00
fe08e1c504 strings: add Builder.write_rune/1 and Builder.write_runes/1 methods 2021-08-19 07:18:09 +03:00
26b77515b9 builtin: optimize []rune.string() 2021-08-19 06:58:53 +03:00
0121c8b4fd v.gen.js: fix method calls and other codegen parts, rand module compiles (#11205) 2021-08-18 11:33:37 +03:00
8dc043ba2c builtin: fix minor C fn definitions (#11180) 2021-08-14 17:19:27 +03:00
34d39ccb64 builtin: fix leak in rune.str(), fix leaks in most assert x == y statements in tests (#11091) 2021-08-13 18:37:34 +03:00
0bd68bf5a2 builtin: rename invalid parameter names in C fn declarations (#11173) 2021-08-13 17:03:39 +03:00
47884dfd1f builtin: move C. calls to .c.v files (#11164) 2021-08-12 21:46:38 +03:00
c9e9556a92 js: array.delete_last() (#11160) 2021-08-12 19:39:33 +03:00
506c30a291 builtin: remove methods that can be autogenerated (#11109) 2021-08-09 15:42:31 +03:00
7a67a08d2f js: implement codegen for array.sort and implement .any,.all (#11100) 2021-08-09 01:46:40 +03:00
94c321c80d v.gen.js: port fully the array test suite & add fixes (#11073) 2021-08-07 17:58:49 +03:00
490dec222f fmt: keep char literal, ' (#11060) 2021-08-06 06:21:28 +03:00
7346aeca5f cgen: refactor array sort generation (#11067) 2021-08-06 03:55:48 +03:00
8743b616a0 v.gen.js: codegen fixes, add a few builtins, port more array tests (#11049) 2021-08-04 12:46:24 +03:00
800c0e5092 vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
b870f7a6f1 cgen: fix array sort error (#11046) 2021-08-04 06:31:57 +03:00
fc193bebf2 builtin: add documentation for builtin array functions (#11023) 2021-08-03 06:25:33 +03:00
836ac54d12 v.gen.js: add more array tests and fixes (#11014) 2021-08-01 14:08:49 +03:00
a7ca051016 v.gen.js: fix for array filter, add more tests and other fixes (#10999) 2021-07-30 11:17:11 +03:00
75c41252d9 js: add more tests & add array prepend codegen (#10988) 2021-07-29 11:39:36 +03:00
b79dd7f0b3 builtin: re-enable u8 alias 2021-07-29 06:46:12 +03:00
09df5adbdd builtin: re-gen v.c 2021-07-29 06:45:04 +03:00
1343ec7444 builtin: fix temporary u8 alias 2021-07-29 06:42:22 +03:00
a7270148e5 builtin: remove u8 alias to re-generate v.c 2021-07-28 22:41:41 +03:00