Commit Graph

11641 Commits (4b9e8e243cb906c408974a0ef3d7e29828f96958)

Author SHA1 Message Date
zakuro fb20a92b1e
fmt: fix a bug that break generics call in string inter (#11468) 2021-09-11 04:47:22 +03:00
Sam Kravitz 145467050d
doc: fix typo in Array slice (#11469) 2021-09-11 04:46:51 +03:00
Alexander Medvednikov 1546090131 vweb: remove a duplicate function parse_multipart_form 2021-09-11 04:21:10 +03:00
playX 07bd61582c
js: fix strconv build, BigInt infix fix (#11464) 2021-09-11 00:11:36 +03:00
Alexander Medvednikov 36fedd28b9
docs: deference operator 2021-09-10 22:53:05 +03:00
Enzo c8471528ce
fmt: format long sum-types with a line for each type (#11461) 2021-09-10 20:56:55 +03:00
Alexander Medvednikov 5c4385a472 cgen: nofloat for kernel code 2021-09-10 20:54:48 +03:00
Delyan Angelov 5010d18f27 examples: use double buffering for mandelbrot.v, to remove flickering on m1 2021-09-10 19:46:10 +03:00
Delyan Angelov fa0983128f
examples: add a mandelbrot viewer example 2021-09-10 18:59:39 +03:00
Daniel Däschle be0c54caf9
checker: require or block for sumtype map (#11089) 2021-09-10 16:07:39 +03:00
yuyi af75789bbf
parser: fix reference var followed by block expr (#11456) 2021-09-10 15:31:09 +03:00
yuyi 91c6eeeae5
cgen: fix `b := &[5, 6, 7]` (#11457) 2021-09-10 14:30:30 +03:00
Delyan Angelov 6ea750da8d
v test-all: add a `v run examples/v_script.vsh` step too 2021-09-10 12:45:52 +03:00
Delyan Angelov bdd053fcf1
v.builder: fix `./v examples/v_script.vsh` on windows (this quickfix is thanks to yuyi98) 2021-09-10 12:30:40 +03:00
Delyan Angelov 48f0ef0a33
ci: ignore patch problems for vinix-kernel.yml 2021-09-10 12:19:05 +03:00
Delyan Angelov 7143b8ab37
v.checker: allow assigning pointers to fn variables (fix vinix compilation) 2021-09-10 11:48:36 +03:00
Alexander Medvednikov afeb1525a1 native: rename cgen to code_gen to avoid confusion with cgen 2021-09-10 03:17:53 +03:00
Alexander Medvednikov 0370d4f268 native: fix macho test 2021-09-09 23:00:54 +03:00
Dialga 66ef27a776
tmpl: fix escaping @ (#11452) 2021-09-09 20:27:24 +03:00
Alexander Medvednikov ab3adf3346 checker: no longer allow automatic dereferncing in `a = b` 2021-09-09 20:21:01 +03:00
Alexander Medvednikov d1e9aa49ea net.http: in memory cert verification 2021-09-09 19:55:57 +03:00
Vincent Laisney c8d4a64512
math.big: fix subtract_digit_array (#11451) 2021-09-09 14:56:20 +03:00
Enzo 1a2d5f65fb
builtin: add `size_t.str()` again (#11446) 2021-09-09 10:50:35 +03:00
Enzo e57b068df0
os: add `open_uri/1`, use it in `v bug` (#11450) 2021-09-09 10:48:53 +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
Subhomoy Haldar 96d4a0777f
math.big: fix comparison and add tests (#11449) 2021-09-08 20:30:20 +03:00
Alexander Medvednikov 4a2728e1bf checker: verify json.decode type 2021-09-08 14:49:02 +03:00
Alexander Medvednikov 55451baa03 builtin: i32 alias 2021-09-08 14:49:02 +03:00
yuyi e5360e164a
fmt: remove unnecessary parentheses after `return` (fix #11423) (#11435) 2021-09-08 14:19:53 +03:00
Enzo bef3390f36
builtin: fix compilation (#11445) 2021-09-08 14:19:21 +03:00
Vincent Laisney 43fae5de74
bigint: division (#11386) 2021-09-08 14:16:35 +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
Ruofan XU 892971024e
parser: fix generic detection of `foo < bar<T>()` (#11434) 2021-09-08 05:54:15 +03:00
Enzo cc8ee5fb84
all: introduce `isize` and `usize` (#11437) 2021-09-08 05:53:39 +03:00
Alexander Medvednikov 577fedfce1 net.http: fix a bug with ? in new_request 2021-09-08 05:11:02 +03:00
Dialga 00433ba460
net.urllib: avoid a double free in set_path() when compiled with -autofree (#11427) 2021-09-07 21:11:03 +03:00
Enzo 79c2bca401
v.scanner: fix error messages with unexpected token `?` (#11428) 2021-09-07 20:46:56 +03:00
yuyi bee5e7de03
v.gen.c: fix generics array delete (#11429) 2021-09-07 20:40:21 +03:00
pancake ddc62ab0d3
native: native prints (#11426) 2021-09-07 15:44:15 +03:00
Delyan Angelov 0b6d585b07
v.gen.c: allow overriding of the == operator on C.Struct type aliases 2021-09-07 12:02:01 +03:00
Delyan Angelov aec016bb14
v.builder: change exit code of `v -check file.v` to 0, when file.v is clean from any errors. 2021-09-07 07:29:45 +03:00
Ned Palacios aedb6b8e84
v.builder: implement a `-check` mode, that runs only the parser + the checker, without codegen (#11414) 2021-09-07 07:17:53 +03:00
Delyan Angelov 823c9a3c84
ci: fix vinix-build job after commit 9776274 in vinix 2021-09-07 07:13:42 +03:00
Xavier Noria 2533f06e1b
regex: define the predicate matches_string (#11422) 2021-09-07 07:01:23 +03:00
cindRoberta f2f7abe2f4
match as alternative to if and unless (#11407)
* match as alternative to if and unless

* Update docs.md

* Update docs.md

* Update docs.md
2021-09-07 06:38:39 +03:00
Dialga 905c292a81
tmpl: enforce stricter line checking for html interpolation (#11413) 2021-09-07 02:21:23 +03:00
penguindark bd10a63839
builtin: string interpolation: binary format support (#11421) 2021-09-07 00:12:54 +03:00
Dialga fae0f8d821
tracev: fix running v tracev from directory with space (#11419) 2021-09-07 00:12:05 +03:00