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

1305 Commits

Author SHA1 Message Date
Delyan Angelov
eed94c727c
os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
playX
57c79770b3
js: port more methods (os, builtin) (#12238) 2021-10-20 16:02:21 +03:00
playX
c1aa782a6c
js,checker: fix some modules build for v -b js self, fix or block check in ast.CallExpr (#12231) 2021-10-19 12:11:54 +03:00
playX
d373eba79b
js: implement more functions for JS backend (#12167) 2021-10-13 09:40:14 +03:00
playX
22962dd2d2
js: change codegen for match statement, speedup string.split_into_lines (#12157) 2021-10-12 09:52:16 +03:00
playX
a8ace2c41c
math: implement pow in pure V (#12105) 2021-10-08 17:44:55 +03:00
playX
33a1006cc5
js: comptime&assert improvements, more byte and strings.Builder methods ported (#12096) 2021-10-07 15:55:47 +03:00
playX
b2945e916f
js: add initial support for runes (#12077) 2021-10-06 10:43:49 +03:00
playX
8d1ba52d0c
js: fix string.bytes codegen, readline, add tests for strings (#12060) 2021-10-04 18:28:30 +03:00
Larpon
a8c2c419cd
builtin: improve malloc panic messages (#12054) 2021-10-03 20:27:46 +03:00
playX
9145cd66ec
js: add more tests to builtin/js and implement more builtin functions (#12049) 2021-10-03 10:08:21 +03:00
playX
82f187e5e0
js: fix rand build, properly use key values on map, add rand.string (#12020) 2021-10-01 21:23:49 +03:00
Wertzui123
e3d379a1eb
builtin: add byte.repeat() and rune.repeat() (#12007) 2021-09-30 09:32:20 +03:00
playX
4333a53f28
js: support running .js.v tests in v test-self, fixes for array methods & codegen (#12011) 2021-09-29 15:33:14 +03:00
yuyi
8789cc422c
v.ast: fix fmt of 'bytestr' to '&byte' (#12014) 2021-09-29 13:53:46 +03:00
crthpl
85b58b03a3
cgen: parallelize (#10844) 2021-09-28 10:28:04 +03:00
Ken
a17b943e87
builtin: add method byte() for string (#11998) 2021-09-28 10:08:10 +03:00
Wertzui123
07d65b2aab
builtin: move byte methods from rune.v to int.v (#11987) 2021-09-26 22:34:25 +03:00
playX
863dd0b23e
js: array improvements (#11952) 2021-09-26 07:33:53 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
Enzo
b2ecca3966
all: remove size_t (#11478) 2021-09-21 02:12:38 +03:00
Ruofan XU
b343f19bec
v.scanner: fix ambiguity of two-level generics and shift-right (#11540) 2021-09-19 16:22:28 +03:00
Delyan Angelov
bd65ceb463
v.markused: remove __print_assert_failure from all_fn_root_names 2021-09-17 21:47:22 +03:00
playX
7d1776b84d
js: equality method generation for V types (#11503) 2021-09-16 07:07:48 +03:00
Alexander Medvednikov
ae41d1d3c6 builtin, cgen: more -nofloat fixes 2021-09-13 19:06:19 +03:00
Alexander Medvednikov
8fc0b486a2 builtin: fix string interpolation when compiling with -nofloat 2021-09-13 18:40:32 +03:00
Alexander Medvednikov
cfcc57f5d3 checker: remove unnecessary "no methods" error; builder: skip float.c.v with -nofloat 2021-09-13 18:14:26 +03:00
playX
5b619b99c2
v.gen.js: Interfaces support, fix for error propagation & panic stacktraces (#11471) 2021-09-11 14:24:47 +03:00
Alexander Medvednikov
ab3adf3346 checker: no longer allow automatic dereferncing in a = b 2021-09-09 20:21:01 +03:00
Enzo
1a2d5f65fb
builtin: add size_t.str() again (#11446) 2021-09-09 10:50:35 +03:00
Delyan Angelov
4faa0f8487
v.checker: add checks for .free() methods 2021-09-09 09:54:06 +03:00
playX
72089c4feb
js: use prefixed names for functions and global symbols (#11387) 2021-09-08 20:30:46 +03:00
Alexander Medvednikov
55451baa03 builtin: i32 alias 2021-09-08 14:49:02 +03:00
Enzo
bef3390f36
builtin: fix compilation (#11445) 2021-09-08 14:19:21 +03:00
Enzo
56ad5d72ef
builtin: add .str method for i/usize (#11441) 2021-09-08 13:41:08 +03:00
Enzo
e3b65092d6
parser: deprecate size_t (#11443) 2021-09-08 13:09:32 +03:00
Enzo
cc8ee5fb84
all: introduce isize and usize (#11437) 2021-09-08 05:53:39 +03:00
penguindark
bd10a63839
builtin: string interpolation: binary format support (#11421) 2021-09-07 00:12:54 +03:00
Lathanao
78c26e69cf
builtin: fix the string.index_any method (#11310) 2021-09-06 15:06:37 +03:00
yuyi
5181031480
builtin: check array.sort_with_compare() arg mismatch (#11385) 2021-09-04 15:02:05 +03:00
Delyan Angelov
91f7be98d0
builtin.js.v: run vfmt 2021-09-03 14:13:36 +03:00
playX
a4df418a68
js: support [export: 'AnotherName'] for FnDecl codegen (#11377) 2021-09-03 13:00:24 +03:00
playX
08c517c966
strconv,v.gen.js: proper optionals returns, strconv compiles to the JS backend (#11364) 2021-09-03 12:16:07 +03:00
playX
a9b705bfd8
js: fix printing, make builtins for result and option types behave correctly (#11336) 2021-08-30 20:47:18 +03:00
yuyi
f44eb88a8d
vfmt: fmt '!(a in/is b)' to 'a !in/is b' (#11335) 2021-08-30 09:45:36 +03:00
playX
61ac7b671d
js: add initial support for optional types, IfGuardExpr codegen for if (#11332) 2021-08-29 14:27:17 +03:00
playX
118c5fdcd8
js: fix -stats compilation of tests, proper alias codegen (#11327) 2021-08-28 16:57:33 +03:00
Alexander Medvednikov
cf4081e2dd all: more chdir/chmod fixes 2021-08-28 12:52:48 +03:00
playX
bdf11d969a
js: add basic support for running tests, fix string.replace_each (#11314) 2021-08-26 15:20:54 +03:00
playX
109d5d5847
js: os now compiles to the JS backend, more builtins & minor codegen fixes (#11302) 2021-08-25 14:40:53 +03:00