Commit graph

16131 commits

Author SHA1 Message Date
Delyan Angelov
7a49f24eb1
examples: fix brainvuck.v (handle [ and ] properly); allow both brainvuck.v wasm_codegen/bf_compiler.v to work with .b files too 2023-10-03 17:01:55 +03:00
Delyan Angelov
fae46a8d85
builtin: extract vlib/builtin/result.v from vlib/builtin/option.v 2023-10-03 08:36:13 +03:00
yuyi
78910535ac
parser: minor optimization in name_expr() (#19493) 2023-10-03 00:11:44 +03:00
Ikko Eltociear Ashimine
5645ee2875
v.util: fix typo in module.v (#19494) 2023-10-03 00:10:28 +03:00
Delyan Angelov
c0a7397637
native: support -no-builtin (generate executables < 1KB Linux with v -no-builtin -b native examples/hello_world.v) 2023-10-02 19:44:02 +03:00
Delyan Angelov
f43be7a171
docs: add dots for consistency, to all the items in the @FILE etc list 2023-10-02 19:07:32 +03:00
yuyi
e3caae9d57
cgen: fix struct init with multi option fn type (#19491) 2023-10-02 17:21:01 +03:00
l-m
7ebee2ed36
examples: add a brainfuck->wasm compiler example (#19492) 2023-10-02 14:42:02 +03:00
Delyan Angelov
8d98a21ff8
all: add support for @LOCATION, for more convenient logging/tracing, without needing to combine @FILE, @LINE at runtime (#19488) 2023-10-02 07:49:10 +03:00
yuyi
6bd45394f1
cgen: fix struct field of fixed array init (fix #19483) (#19487) 2023-10-01 22:11:20 +03:00
Alexander Medvednikov
f8693adfa2 checker: turn propagation warning into an error; sokol: make some structs public 2023-10-01 14:42:12 +03:00
Delyan Angelov
a79c574cb9
ci: fix v -cstrict vlib/builtin/array_test.v 2023-10-01 09:18:07 +03:00
Delyan Angelov
ec9ac7715a
builtin: add an unsafe { a.reset() } method, for quickly setting all bytes in an array to 0 2023-10-01 07:22:42 +03:00
Delyan Angelov
413da8be62
ci: fix misc-tooling, V self compilation with g++ and -std=c++11 2023-09-30 20:16:26 +03:00
Delyan Angelov
f5fc0f9ea2
ci: fix flaky vlib/v/tests/go_wait_option_test.v (error->none) 2023-09-30 20:05:06 +03:00
Delyan Angelov
c552ecf2b0
ci: fix vlib/net/tcp_test.v (change return type of one_shot_echo_server from ? to !) 2023-09-30 19:56:40 +03:00
Delyan Angelov
7d1eab7931
ci: fix vlib/v/gen/js/jsgen_test.v errors in js.v and option.v 2023-09-30 19:50:42 +03:00
Delyan Angelov
d850c4667a
ci: temporary workaround for the -autofree regression in the valgrind tests, caused by 773f961 2023-09-30 19:41:33 +03:00
Delyan Angelov
c030c5efa8
builtin: extract backtraces.c.v, backtraces_nix.c.v, backtraces_windows.c.v (#19480) 2023-09-30 19:24:31 +03:00
yuyi
80339c841a
cgen: fix printing fixed array of options (#19479) 2023-09-30 16:46:45 +03:00
Alexander Medvednikov
773f961736 checker: turn the option/result split warning into an error; readme: better wording 2023-09-30 16:40:26 +03:00
Alexander Medvednikov
5b1b2cc7c0 V 0.4.2 2023-09-30 15:08:26 +03:00
Alexander Medvednikov
5cc1db8318 0.4.2 changelog 2023-09-30 14:41:41 +03:00
Delyan Angelov
ced5f213ef
checker: allow for const source = $embed_file(@FILE).to_string() 2023-09-30 08:50:02 +03:00
yuyi
ae5b4bbd17
checker: check fixed array init with default expression (#19472) 2023-09-29 22:06:30 +03:00
Delyan Angelov
24278d82ba
os, v.builder: show more details, when a program ran by v run file.v, exits by a signal (fix #19412) (#19471) 2023-09-29 22:02:59 +03:00
Delyan Angelov
1476daf803
docs: fix note about submodule names 2023-09-29 14:02:17 +03:00
Delyan Angelov
137cb09426
gg: cleanup in init_pipeline 2023-09-29 13:06:15 +03:00
Delyan Angelov
6fc3a3d088
examples: add examples/gg/sample_count.v, showing the influence of the sample_count gg.Config parameter 2023-09-29 12:06:06 +03:00
Anton Zavodchikov
aa3832ceda
net.html: make public the CloseTagType enum (#19468) 2023-09-29 12:00:41 +03:00
yuyi
74997fd824
ast, cgen: fix as cast with call expr (fix #19453) (#19462) 2023-09-29 11:59:14 +03:00
Larpon
b5f71dffe4
datatypes: improve the doc strings for RingBuffer and its methods (#19464) 2023-09-28 19:07:26 +03:00
Turiiya
1a2ad27e79
vcreate: update templates, add lib (#19444) 2023-09-28 19:06:00 +03:00
Swastik Baranwal
9a03e18b81
fmt: keep anon struct decl fields in interfaces (#19461) 2023-09-28 18:59:45 +03:00
yuyi
4941a47018
cgen: fix array of fns index call with direct_array_access mode (#19460) 2023-09-28 14:32:43 +03:00
Keito Tobichi
86a2917fdd
examples: add another graph example for bread first search with backtracking (#19463) 2023-09-28 14:23:58 +03:00
Delyan Angelov
fbd4529fbb
ci: add ./v install markdown for the VPM compilation steps 2023-09-28 14:20:10 +03:00
Swastik Baranwal
8f69bd1311
cgen: fix type VType = &C.CType (#19452) 2023-09-27 21:17:17 +03:00
Turiiya
92a534a55b
github: remove unintended line break in issue voting note (#19455) 2023-09-27 21:13:13 +03:00
yuyi
ec30256c7f
builtin: cleanup obsolete function in string.v and array.v (#19451) 2023-09-27 19:49:33 +03:00
yuyi
981f76cd04
builtin, cgen: fix printing slice of fn call string (#19450) 2023-09-27 14:53:56 +03:00
Delyan Angelov
b3ee304381
tests: skip testing v -os windows -experimental -b native -o hw.exe examples/hello_world.v on !windows 2023-09-27 12:31:33 +03:00
Delyan Angelov
e115d4461c
checker: allow for each(a, |x| println(x)), i.e. using lambda expressions, when expecting fn (x int) 2023-09-27 11:49:12 +03:00
Delyan Angelov
b81a5325ef
arrays: add arrays.each, arrays.each_indexed, and tests for them 2023-09-27 11:26:05 +03:00
Delyan Angelov
3de43b82e0
v.ast: improve Stmt.str(), showing more details about ast.Block, ast.DeferStmt, ast.ForInStmt, ast.GlobalDecl 2023-09-27 11:11:41 +03:00
squidink7
12ee3fa86a
toml: add decoding for struct fields of type map[string]T (#19447) 2023-09-26 12:53:24 +03:00
Artem Yurchenko
bd9f42d14f
github: improve the voting message for issues (#19448) 2023-09-26 12:48:34 +03:00
Slashscreen
8b31eab88d
cgen: remove the special plan9 support code, treat it instead as a posix system in cheaders.v (#19445) 2023-09-26 07:20:48 +03:00
wygsh
245f8e39f1
cgen: fix promoting an alias typed value, to a sumtype of the alias's base type (fix #19407) (#19423) 2023-09-26 07:17:48 +03:00
Artem Yurchenko
a8a3d3a64d
CONTRIBUTING: use a direct link, to filter and order issues by likes (#19442) 2023-09-26 07:02:39 +03:00