Alexander Medvednikov
|
f8827c3fe5
|
builtin: clone the strings correctly in array.push
|
2020-11-22 13:22:42 +01:00 |
Henrixounez
|
8152b86652
|
checker: detect correct len expression for multidimensional array init (#6521)
|
2020-10-02 03:12:33 +02:00 |
Alexander Medvednikov
|
c01d17fcc4
|
tests: fix array_test.v
|
2020-08-27 13:12:04 +02:00 |
Maciej Obarski
|
e8e0d9fa42
|
all: [direct_array_access] tag (#6203)
|
2020-08-24 09:04:50 +02:00 |
Nick Treleaven
|
bab5c21224
|
parser: warn when fixed-size ArrayInit doesn't have trailing `{}`. (#6137)
|
2020-08-16 04:54:05 +02:00 |
Alexander Medvednikov
|
f8be2110ec
|
sort: fix sorting by struct fields
|
2020-08-12 18:43:41 +02:00 |
Alexander Medvednikov
|
e5e31f7210
|
sort: handle `.sort(a.field > b.field)`
|
2020-08-12 06:11:40 +02:00 |
Alexander Medvednikov
|
4bc0dde413
|
all: new `.sort(a < b)` syntax
|
2020-08-12 05:54:51 +02:00 |
Delyan Angelov
|
cf7d03bda6
|
builtin: implement array.pop()
|
2020-07-14 20:01:39 +03:00 |
yuyi
|
fae601fe39
|
array: add `reverse_in_place` for performance (#5798)
|
2020-07-11 13:17:11 +02:00 |
yuyi
|
0c9c66dd6b
|
cgen: fix mutable array arguments (#5769)
|
2020-07-10 18:04:51 +02:00 |
yuyi
|
27149ba8bc
|
cgen: fix `in` in mutable arrays (#5647)
|
2020-07-04 12:12:44 +02:00 |
Ruofan XU
|
765ffa37eb
|
cgen: fix == for mut arraay args (#5648)
|
2020-07-04 11:36:33 +02:00 |
yuyi
|
6cbc0e84f0
|
cgen: fix cross assign with mutable args (fix #5609 #5610 #5611) (#5614)
|
2020-07-02 11:09:26 +02:00 |
yuyi
|
6c5b638202
|
parser: fix array cross assign (fix #5577) (#5591)
|
2020-07-01 12:11:03 +02:00 |
yuyi
|
d9409006fa
|
cgen: fix a[0]+='str'
|
2020-06-28 11:16:16 +02:00 |
yuyi
|
e41ddab3b0
|
test: add multiple array clone tests
|
2020-06-20 02:35:22 +02:00 |
yuyi
|
dc8b82e9a4
|
array: fix multiple array clone
|
2020-06-19 13:32:55 +02:00 |
yuyi
|
930c3d73c1
|
cgen: fix `arr.insert(0, [1,2,3])` and `arr.prepend([1,2,3])`
|
2020-06-18 12:08:11 +02:00 |
yuyi
|
3f01e2b796
|
cgen: fix array.insert and arr.prepend
|
2020-06-18 00:22:34 +02:00 |
yuyi
|
b4ad174b7f
|
array: fix multiple array.repeat index error
|
2020-06-12 11:42:26 +02:00 |
yuyi
|
ff1437fc5a
|
cgen: fix multi_array index issue
|
2020-06-12 01:24:25 +02:00 |
yuyi
|
acf0b84523
|
cgen: fix array.filter(anon_fn)
|
2020-06-10 13:18:59 +02:00 |
yuyi
|
12faf9fcfa
|
cgen: fix multiple array.map(anon_fn) calls
|
2020-06-10 13:18:45 +02:00 |
yuyi
|
85c741519b
|
cgen: fix array.map(fn...)
|
2020-06-09 12:50:56 +02:00 |
yuyi
|
d472a27489
|
cgen: fix array.map(anon_fn)
|
2020-06-09 10:14:10 +02:00 |
Enzo Baldisserri
|
11b7b97311
|
parser: fail when assigning to _ with :=
|
2020-06-08 00:47:04 +02:00 |
yuyi
|
5ae8853648
|
all: change `f mut Foo` to `mut f Foo`
|
2020-06-04 10:35:40 +02:00 |
yuyi
|
84edbd83da
|
all: fix struct names error
|
2020-05-27 19:12:34 +03:00 |
Uwe Krüger
|
013fdb8a4b
|
checker: restrict numeric promotions to cases where no data is lost
|
2020-05-27 05:42:48 +02:00 |
yuyi
|
dda875a9c8
|
all: unify const names to snake_case
|
2020-05-22 17:36:09 +02:00 |
Tanel Liiv
|
c9f3a05ef6
|
checker: fix map/filter called with a plain fn argument
|
2020-05-20 15:28:33 +03:00 |
Tanel Liiv
|
68ca8ab8a4
|
array: nested map()
|
2020-05-02 15:26:58 +02:00 |
Tanel Liiv
|
182e7071bf
|
array: map() function
|
2020-05-01 00:29:54 +02:00 |
yuyi
|
e9f764db4f
|
cgen: uniform string output format
|
2020-04-27 14:48:28 +02:00 |
Alexander Medvednikov
|
83552a0d58
|
array: replace make() with the new init syntax
|
2020-04-26 17:52:27 +02:00 |
Alexander Medvednikov
|
f23948010a
|
parser: new array init syntax
|
2020-04-26 17:28:48 +02:00 |
yuyi
|
2574dce174
|
all: fix remaining `[]array` warnings
|
2020-04-26 16:25:54 +02:00 |
yuyi
|
9f4d498ff1
|
all: update`import ()` and `[]array`
|
2020-04-26 13:49:31 +02:00 |
Alexander Medvednikov
|
153ac230ec
|
tests: use new array init syntax, fix mutability
|
2020-04-26 11:56:30 +02:00 |
Alexander Medvednikov
|
45e21085c7
|
tests: re-enable some old array tests
|
2020-04-23 04:23:19 +02:00 |
Alexey
|
91de4e1ece
|
array: test assignment operators
|
2020-04-14 20:32:06 +02:00 |
Alexey
|
0c63f5c80d
|
builtin: test left/right shift precedence
|
2020-04-14 19:38:11 +02:00 |
Alexander Medvednikov
|
ec10831318
|
parser: `[]int{cap:cap, len:len}` syntax; minor fixes
|
2020-04-14 18:10:16 +02:00 |
Alexander Medvednikov
|
4b029567e5
|
tests: test string literal indexing and mutable array filter
|
2020-04-11 23:32:00 +02:00 |
Alexander Medvednikov
|
39245f088a
|
array: test !in and filter
|
2020-04-11 23:01:50 +02:00 |
Alexander Medvednikov
|
46aed151ab
|
parser: snake_case check; array: mutable array test
|
2020-04-04 14:09:58 +02:00 |
Alexander Medvednikov
|
f98cc9c017
|
cgen: fix ARR_LEN
|
2020-03-31 17:16:12 +02:00 |
Alexander Medvednikov
|
9d630dff30
|
allow slicing of fixed size arrays
|
2020-03-31 16:48:00 +02:00 |
Alexander Medvednikov
|
7fdce50718
|
cgen: write defer statements at the end of the function
|
2020-03-27 11:21:00 +01:00 |
Joe Conigliaro
|
fd8bb2c95c
|
tests: small array/struct test notes & tmp fix
|
2020-03-27 20:47:24 +11:00 |
Alexander Medvednikov
|
f0334b2e12
|
cgen: fix `arr[i] *= x` and `2d_arr << arr`
|
2020-03-26 22:09:25 +01:00 |
Alexander Medvednikov
|
ed3e0c43bc
|
cgen: for c in string; short struct init syntax fixes;
|
2020-03-26 17:03:14 +01:00 |
Alexander Medvednikov
|
fc86269bc9
|
checker: array str fixes
|
2020-03-26 11:32:32 +01:00 |
Alexander Medvednikov
|
26fab9b274
|
cgen: fix mutable array args
|
2020-03-25 17:04:16 +01:00 |
Alexander Medvednikov
|
456750ac19
|
v2: array_test fixes
|
2020-03-25 14:24:48 +01:00 |
Alexander Medvednikov
|
5d976d841b
|
v2: raw strings
|
2020-03-24 17:07:27 +01:00 |
Alexander Medvednikov
|
32c8eb6490
|
os: vfmt os_test.v
|
2020-03-24 16:18:37 +01:00 |
SleepyRoy
|
f798a0937a
|
expression: set floats as f64 by default
|
2020-03-19 07:24:49 +01:00 |
Alexander Medvednikov
|
ca0bae0fcd
|
array: fix reverse()
|
2020-03-18 18:54:11 +01:00 |
penguindark
|
630913d872
|
builtin: new str(), hex() functions without C.printf
|
2020-03-11 00:38:11 +01:00 |
Alexey
|
cbffbf3438
|
array: reverse empty arrays correctly
|
2020-02-29 20:44:02 +01:00 |
spaceface777
|
ef8c1203b4
|
cleanup: replace C for loops with range
|
2020-02-24 17:55:16 +01:00 |
Alexander Medvednikov
|
c314ab7b60
|
fix cmdline_test.v
|
2020-02-18 20:31:15 +01:00 |
Alexander Medvednikov
|
480af3f381
|
v2: checker fixes
|
2020-02-18 20:06:01 +01:00 |
prime31
|
a2838ae6f3
|
array: add `array.trim()`
|
2020-02-17 20:31:40 +01:00 |
Alexander Medvednikov
|
0ec5680156
|
array: bring back reduce test
|
2020-02-11 13:22:22 +01:00 |
Alexander Medvednikov
|
432ee93916
|
v2: break, continue, for in fixes, fixed size array, |
|
2020-02-04 08:29:50 +01:00 |
Alexander Medvednikov
|
9f4661391d
|
v2: simplify the type system; an initial version of the V interpreter
|
2020-02-02 07:56:18 +01:00 |
prime31
|
08d3401092
|
array: clear()
|
2020-01-27 22:31:48 +01:00 |
Alexander Medvednikov
|
0502a54a36
|
new gg/freetype modules with sokol/fontstash backends
|
2020-01-22 20:54:36 +01:00 |
Charles WANG
|
136c469ef7
|
array: more eq functions
|
2020-01-21 18:49:30 +01:00 |
Alexander Medvednikov
|
ab368bdc53
|
array: test `arr << arr`
|
2020-01-19 22:15:37 +01:00 |
Alexander Medvednikov
|
b6c0b22742
|
interfaces fixes; freetype.text_width(); gl and stbi fixes
|
2020-01-12 16:11:28 +01:00 |
Alexander Medvednikov
|
e3275f6083
|
fix array_test.v
|
2020-01-08 10:27:20 +01:00 |
Alexander Medvednikov
|
3c0fca9258
|
register methods (wip)
|
2020-01-08 10:19:18 +01:00 |
BigBlack
|
320174bd5b
|
fix #3202
|
2019-12-27 06:09:09 +03:00 |
れもん
|
28ecfb231d
|
compiler: map[string]pointer, ?pointer, fix []pointer
|
2019-12-22 01:44:16 +03:00 |
BigBlack
|
67cf7f18e6
|
array of pointers support
|
2019-12-18 03:26:04 +03:00 |
joe-conigliaro
|
3486118ab7
|
compiler: force custom struct .str() methods to be defined public
|
2019-12-11 03:24:26 +03:00 |
Alexander Medvednikov
|
be323e2fb6
|
ci: set up pg database to test ORM
|
2019-12-06 02:11:39 +03:00 |
Alexander Medvednikov
|
c98db8c437
|
array: fix sort() for ints
|
2019-11-19 00:27:35 +03:00 |
Alexander Medvednikov
|
7d924679a6
|
[]: update all examples and tests
|
2019-11-14 10:00:22 +03:00 |
Alexander Medvednikov
|
96b530cf85
|
update []
|
2019-11-14 09:53:05 +03:00 |
Alexander Medvednikov
|
ffa6bcfff5
|
vfmt: handle comments
|
2019-11-13 11:54:22 +03:00 |
Alexander Medvednikov
|
75510e2ea1
|
remove `last` test
|
2019-11-06 18:19:03 +03:00 |
Alexander Medvednikov
|
f6d06fcda2
|
update tests and examples after the mutability fix
|
2019-11-06 06:57:04 +03:00 |
Alexander Medvednikov
|
425c9ce401
|
a special `last` variable in for loops (experimental)
|
2019-11-05 17:17:55 +03:00 |
Alexander Medvednikov
|
ae696e7ccb
|
Revert "Revert "array: fix and document array functions""
This reverts commit b1eb9d6b15 .
|
2019-10-31 21:50:20 +03:00 |
Alexander Medvednikov
|
b1eb9d6b15
|
Revert "array: fix and document array functions"
This reverts commit 7fa33fc250 .
|
2019-10-31 20:29:58 +03:00 |
Alvydas Vitkauskas
|
7fa33fc250
|
array: fix and document array functions
|
2019-10-31 15:46:50 +03:00 |
lorenzo pirro
|
d42c53346d
|
array: eq() for builtins (byte, string, int, i64, f32)
|
2019-10-29 14:26:00 +03:00 |
joe-conigliaro
|
d81b0675f0
|
array: bring back left & right method tests
|
2019-10-27 12:05:19 +03:00 |
joe-conigliaro
|
59378dce46
|
compiler/vlib: replace substr/left/right with `[start..end]` everywhere
|
2019-10-27 10:03:15 +03:00 |
joe-conigliaro
|
a075ce160e
|
compiler: add `[..2]` & `[2..]` support for slices
|
2019-10-27 09:36:04 +03:00 |
Alexander Medvednikov
|
ee51313e2c
|
test array and string slices
|
2019-10-27 01:37:29 +03:00 |
Alexander Medvednikov
|
6944161b15
|
array: clean up filter()
|
2019-10-26 14:53:55 +03:00 |
Alexander Medvednikov
|
f40d672a12
|
array: map() test
|
2019-10-26 14:32:56 +03:00 |
Alexander Medvednikov
|
5510327d70
|
array_test.v: str() test
|
2019-10-25 22:40:52 +03:00 |
Delyan Angelov
|
eef73eea22
|
tools: new tool to extracts function names declared in V files
|
2019-10-21 14:14:28 +03:00 |