16102 Commits

Author SHA1 Message Date
Delyan Angelov
d6db4f90ea
tests: fix compilation of bench_compare_tokens.v, add from_string from tinyv 2023-08-14 17:27:12 +03:00
jacksonmowry
d285ff08f0
db.mysql: add the exec family of methods (#19132) 2023-08-14 16:18:01 +03:00
Delyan Angelov
cdaabc120d
tools: quick bugfix to vgit.v, after the previous commit message, that included a hash; TODO: a more robust check 2023-08-14 15:47:46 +03:00
Delyan Angelov
a93ef6ea67
tools: make v run cmd/tools/oldv.v 5b7a1e8 -c "./v version" faster (5b7a1e8 is the oldest supported commit from 2019-06-29) 2023-08-14 14:32:13 +03:00
Delyan Angelov
eef77e3cc1
tools: make parser_speed.v more robust (now find . -name "*.v" | xargs v run cmd/tools/measure/parser_speed.v passes) 2023-08-14 12:35:34 +03:00
Turiiya
2fec2fad53
vdoc: make minor improvements to scrollspy and styles (#19128) 2023-08-14 10:14:36 +03:00
Delyan Angelov
85de1486da
ci,parser: fix syntax error 2023-08-14 10:05:31 +03:00
Alexander Medvednikov
83067667c7 checker: improve -line-info 2023-08-14 09:37:46 +03:00
shove
58d4bd67b2
checker, fmt: fix static methods not recognized when imported from a module(fix #19127) (#19133) 2023-08-14 06:29:52 +03:00
yuyi
d72229ff2c
scanner: error early on an unsupported escape sequence in a string, like \_ (fix #19131) (#19134) 2023-08-14 06:21:51 +03:00
Etienne Girondel
492e918fdb
builder,pref: allow thirdparty objects compilation with CPP compiler (#19124) 2023-08-13 20:30:28 +03:00
Delyan Angelov
9543123dc5
arrays: add a generic arrays.append/2, which unlike arrays.concat(a, ...b), does not require a spread for the second argument 2023-08-13 20:04:44 +03:00
Delyan Angelov
be1270540b
gg: use html5_canvas_name as the name of the canvas in gg.js.v too, similarly to gg.c.v 2023-08-13 17:45:19 +03:00
Delyan Angelov
33965bc29b
examples/2048: remove the emscripten specific code from examples/2048/2048.v (moved to gg.c.v) 2023-08-13 17:31:29 +03:00
Delyan Angelov
ca0f589310
examples/tetris: add instructions, on how to compile the game through Emscripten and v -os wasm32_emscripten 2023-08-13 17:28:27 +03:00
Delyan Angelov
59f831059c
ci: fix binary_artifact.yml weekly.2023.32.2 2023-08-13 16:03:50 +03:00
shove
11a8a46ade
tests: cleanup test cases (#19104) weekly.2023.32.1 2023-08-13 13:36:08 +03:00
shove
a711e17f41
cgen: fix alias of array method call(fix #19125) (#19129) 2023-08-13 13:24:56 +03:00
Turiiya
f7187a7816
ci: extend vinix ci to include utils (#19123)
* ci: extend vinix ci to include utils

* rename vinix_kernel_ci to vinix_ci
2023-08-13 13:20:11 +03:00
Delyan Angelov
88d3326a60
ci: fix v check-md examples/2048/ 2023-08-13 13:04:00 +03:00
Delyan Angelov
dad93f8fab
examples/2048: add instructions, on how to compile the game through Emscripten and v -os wasm32_emscripten 2023-08-13 11:13:17 +03:00
Delyan Angelov
bfaa3debcd
cgen: fix bootstrapping on older macOS Catalina 2023-08-12 12:31:01 +03:00
yuyi
e136941655
scanner: fix string interpolation with nested string interpolation in inner quotes p. 3 (#19121) 2023-08-12 11:45:08 +03:00
Felipe Pena
aca6f544ff
cgen: fix shared map ptr type default value (#19113) 2023-08-12 11:43:47 +03:00
yuyi
89bd575ec0
ast, parser, cgen: fix generic struct init (Stack[&Person]{}) (fix #19119) (#19122) 2023-08-12 11:43:20 +03:00
Alexander Medvednikov
3c26bfff55 checker: "v -line-info" for a quick run to fetch info about objects on one line 2023-08-11 21:08:28 +03:00
yuyi
61ffbe1a8c
parser, checker, cgen: fix fn return alias of fixed array (#19116) 2023-08-11 20:57:05 +03:00
Delyan Angelov
5a0d9e7d67
.gitignore: ignore thirdparty/tcc/ and thirdparty/sqlite/ (fix #18102 i.e. slowness of V from v_windows.zip, after v up on windows, because tcc was removed) 2023-08-11 18:46:44 +03:00
yuyi
4355be8ef2
checker, cgen: fix the comparison of alias and non-alias values (#19112) 2023-08-11 15:07:16 +03:00
shove
8714119590
cgen: fix spawn call fn struct field(fix #18862) (#19096) 2023-08-11 13:58:26 +03:00
yuyi
ec45e4736a
parser: fix struct field fn type with default value (fix #19099) (#19106) 2023-08-11 13:50:54 +03:00
Wertzui123
387f717004
websocket: initialize function pointers with nil (#19105) 2023-08-11 13:49:29 +03:00
yuyi
741f5541ff
benchmark: minor cleanup in total_message() (#19102) 2023-08-11 12:12:37 +03:00
Delyan Angelov
595200f7dc
ci: cleanup more the contents of the generated v_linux.zip, v_macos.zip, and v_windows.zip, use -skip-unused 2023-08-11 12:09:01 +03:00
Delyan Angelov
e3b0dfbfdd
term.termios: allow again for v -prod -os wasm32_emscripten examples/2048/, by using an eprintln, instead of a $compile_warn 2023-08-11 11:05:26 +03:00
Delyan Angelov
715c0b6185
gg: expand the -d show_fps background, so fps>100 will not overflow it 2023-08-11 10:33:05 +03:00
shove
65a493d023
v.util: fix a wrong path analysis when parsing 'mod_name' (fix #18970) (#19090) 2023-08-10 05:42:59 +03:00
jacksonmowry
76b4c92848
db.sqlite: make functions return results, breaking change (#19093) 2023-08-10 05:39:32 +03:00
Delyan Angelov
d0cc564089
db.mysql: make mysql.Result.result public (fix #19098) 2023-08-10 05:21:44 +03:00
Alexander Medvednikov
f915366ac4 checker: improve the nil fn error a bit 2023-08-09 22:37:11 +03:00
yuyi
3211a653c3
scanner: fix string interpolation with nested string interpolation in inner quotes 2 (#19094) 2023-08-09 15:05:17 +03:00
Delyan Angelov
eef9b5f168
builtin,os: fix compiling V programs with latest clang 16 on windows (clang 16 is stricter than clang 14) (#19095) 2023-08-09 15:04:44 +03:00
Turiiya
64029a2980
vdoc: implement keyboard shortcuts for search navigation (#19088) 2023-08-09 13:53:15 +03:00
yuyi
b7afe6b236
scanner: add error for invalid newline rune literal, make errors more informative (#19091) 2023-08-09 08:49:47 +03:00
Delyan Angelov
6813a12339
transformer: keep the symbolic expressions inside dump(expr) from being optimised out, even when they could be, when composed of literals known at comptime (#19086) 2023-08-08 18:25:55 +03:00
shove
10df697d32
time: add 'i', 'ii' in custom_format() for 12-hours clock(0-12-1-11) (#19083) 2023-08-08 12:25:39 +03:00
yuyi
68f18fcb8e
scanner: fix string interpolation with nested string interpolation in inner quotes (fix #19081) (#19085) 2023-08-08 12:25:05 +03:00
shove
f4859ffb11
checker: fix missing or_block check for left expr of CallExpr(fix #19061) (#19074) 2023-08-08 09:06:03 +03:00
Turiiya
3b3395d93b
vpm: don't keep empty dirs for git installs (#19070) 2023-08-08 08:59:16 +03:00
Swastik Baranwal
8db1aaafd5
checker: explicitly disallow creating type aliases of none, i.e. type Abc = none (#19078) 2023-08-08 08:58:10 +03:00