Commit graph

17924 commits

Author SHA1 Message Date
Mike Ward
ca07347430
examples: update vmatrix.v to handle terminal resizing, minor visual tweaks (#21836) 2024-07-09 22:10:40 +03:00
Felipe Pena
494be20564
cgen: fix auto str for fn struct member (#21825) 2024-07-09 21:08:31 +03:00
yuyi
70e78cc766
vrepl: cleanup in vrepl.v (#21834) 2024-07-09 21:04:59 +03:00
yuyi
1229ccf98a
ast, cgen: fix closure variable with optional reference params (fix #21827) (#21829) 2024-07-09 21:00:28 +03:00
Delyan Angelov
43baa88f60
ci: disable c2v_ci.yml temporarily, until it is fixed 2024-07-09 19:34:35 +03:00
Felipe Pena
66ea82605e
v: improve C var args interop, allow for fn f(some int, ...) { (#21812) 2024-07-08 13:03:08 +03:00
yuyi
bf23b2ef46
vrepl: fix arbitrary script execute (#21818) 2024-07-08 12:56:57 +03:00
yuyi
14d378c330
checker: check expr evaluated but not used (fix #21436) (#21816) 2024-07-08 09:52:01 +03:00
Swastik Baranwal
f6de36db51
parser: sugggest map initialization with the correct syntax (#21817) 2024-07-07 16:02:38 +03:00
Mike Ward
df18047347
examples: add vmatrix.v showing a Matrix like terminal screen effect (#21814) 2024-07-07 07:50:18 +03:00
Kim Shrier
587fb72581
v.pref: make pref_test.v be less sensitive on the specific C compiler used as a backend (#21813) 2024-07-07 07:46:39 +03:00
yuyi
1571645b00
vrepl: fix os.input() (#21811) 2024-07-06 21:36:04 +03:00
Kim Shrier
4475759c35
tests: fix handling of string type in closure_generator_test.v (#21809) 2024-07-06 02:41:44 +03:00
Kim Shrier
ff102c95b7
doc: update full list of builtin compile options (#21808) 2024-07-06 02:33:24 +03:00
Delyan Angelov
56d2ba6281
examples: add a glow effect to spirograph.v 2024-07-05 14:07:16 +03:00
Delyan Angelov
3ee95d1040
sokol: reduce _SGL_DEFAULT_MAX_VERTICES back to 1<<17 (1<<22 in 811ac12, leads to ~140MB of memory usage for gg/minimal.v, instead of just ~38MB) 2024-07-05 13:07:30 +03:00
yuyi
cb42f32852
v.token: make is_assign() contain .decl_assign (#21805) 2024-07-05 12:52:54 +03:00
yuyi
35e6a40c0e
vrepl: fix variable name starts with print (#21806) 2024-07-05 12:47:24 +03:00
Swastik Baranwal
dd93b56b68
parser: suggest using type alias when defining methods on non-local types (#21803) 2024-07-05 12:45:54 +03:00
Kim Shrier
174257650f
examples: update macos_tray example to cleanly compile (#21804) 2024-07-05 12:14:34 +03:00
Delyan Angelov
07c1c51036
examples: add slow rotation to spirograph.v, use a brighter color for the instructions 2024-07-05 11:52:41 +03:00
Delyan Angelov
811ac125fa
examples: add an animated spirograph.v using gg 2024-07-05 11:29:47 +03:00
yuyi
a67bfebe95
vrepl: fix output of the fn call (related #21792) (#21800) 2024-07-04 20:50:31 +03:00
Delyan Angelov
96eada1835
v.builder: print the suggestion for using v xyz instead of v xyz.v just once (#21801) 2024-07-04 13:50:53 +03:00
kbkpbot
3eac8b42f8
cgen: fix const name without main prefix in -translated mode (#21789) 2024-07-04 13:23:27 +03:00
yuyi
0c2d72f099
ast, parser: cleanup in stringify_fn_after_name() (#21799) 2024-07-04 07:54:22 +03:00
shadow
dceea80d85
examples: add interpolated movement and input queue to snek/snek.v (#21798) 2024-07-03 22:17:46 +03:00
Felipe Pena
9b6578e883
cgen: fix comptime call argument auto conversion for indexexpr (fix #15232) (#21796) 2024-07-03 19:26:03 +03:00
yuyi
30b3ab6f41
ci: restore v_apps_and_modules_compile_ci.yml (#21791) 2024-07-03 19:13:51 +03:00
Delyan Angelov
879cf1ed21
arrays: add arrays.chunk_while/2, where arrays.chunk_while([0,9,2,2,3,2],fn(x int,y int)bool{return x<=y})==[[0,9],[2,2,3],[2]] 2024-07-03 19:05:34 +03:00
yuyi
8188f65590
vrepl: fix method call (fix #21788) (#21792) 2024-07-03 17:58:17 +03:00
Delyan Angelov
62e2b7fbdb
fmt: keep manual newlines after fn parameters in fn declarations, do not auto wrap (#21795) 2024-07-03 17:33:48 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
Swastik Baranwal
36e31d6908
checker: disallow nil in non-nil arrays and vice versa (#21786) 2024-07-02 23:05:20 +03:00
Felipe Pena
81b095bcb2
cgen: allow alias to array fixed to be initialized like [n]int{} (#21785) 2024-07-02 16:51:58 +03:00
shadow
c9c41af172
examples: add gg/fire.v (#21784) 2024-07-02 11:04:00 +03:00
Felipe Pena
a3793e3bb1
checker: fix generic inference in if expressions used in assignments (#21781) 2024-07-02 10:50:26 +03:00
Felipe Pena
06825006b3
cgen: fix array fixed empty struct code generated on clang (fix #21761) (#21764) 2024-07-01 21:00:26 +03:00
Felipe Pena
4fc6c7e8a4
cgen: fix scope command when $dbg breakpoint is on or-expr (fix #21772) (#21747) 2024-07-01 20:06:21 +03:00
Delyan Angelov
b82d6859b5
transformer: handle enum_variant = some_const + 10 (fix #21777) (#21779) 2024-07-01 19:22:40 +03:00
Alexander Medvednikov
39f419139e encoding.binary: add an f32 test; checker: remove "(s)" from the assignment mismatch error 2024-07-01 15:07:07 +03:00
Alexander Medvednikov
940fc41c19 encoding.binary: little_endian_f32_at 2024-07-01 14:08:37 +03:00
yuyi
605c43df75
checker: change comptime_if_branch() to comptime_if_cond() (#21774) 2024-07-01 11:38:04 +03:00
yuyi
65ff74b82a
checker: fix nested if expr method call (#21773) 2024-07-01 10:51:32 +03:00
Delyan Angelov
387a01fcb5
crypto.blowfish: apply @[direct_array_access] to very commonly used functions (#21771) 2024-06-30 20:48:05 +03:00
Delyan Angelov
df7828d1f5
cgen: unkek cgen.v 2024-06-29 23:13:26 +03:00
Delyan Angelov
b6c7b46dcf
math: avoid unused calculations for math.modulo_floored/2 and math.modulo_euclid/2 2024-06-29 11:33:46 +03:00
Delyan Angelov
3799d7f635
math: add divide_truncated/2, divide_euclid/2, divide_floored/2 and modulo_truncated/2, modulo_euclid/2, modulo_floored/2 (#21759) 2024-06-29 11:24:49 +03:00
Turiiya
895bd71fa0
builtin: improve snake to camel case conversion (#21755) 2024-06-29 11:10:10 +03:00
yuyi
4a7c70c909
cgen: fix reference variable str() method call (#21753) 2024-06-28 15:47:35 +03:00