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 |
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 |
yuyi
|
6084c0fc54
|
checker, cgen: fix complex generic sumtype (fix #11392) (#11400)
|
2021-09-06 03:15:53 +03:00 |
Dialga
|
87f38bf6e7
|
tmpl: don't trim whitespace and escape \ (#11393)
|
2021-09-06 03:12:53 +03:00 |
Alexander Medvednikov
|
71f1be5388
|
checker: fix a typo
|
2021-09-05 18:46:14 +03:00 |
yuyi
|
3fd2dd45a4
|
checker: do now allow type name shadowing (#11401)
|
2021-09-05 18:34:21 +03:00 |
zakuro
|
aefe267970
|
fmt: fix removal of selective imported generic type (#11395)
|
2021-09-05 17:59:35 +03:00 |
Delyan Angelov
|
6b55b6d417
|
ci: add more details for diagnosing the sporadically failing init_global_test.v
|
2021-09-05 16:19:00 +03:00 |
yuyi
|
48e65a7bb2
|
checker: check type in match range (fix #11337) (#11389)
|
2021-09-05 04:50:43 +03:00 |
yuyi
|
87934ecf39
|
cgen: fix variable name are 'array' or 'string' (fix #10991 #11343) (#11378)
|
2021-09-04 19:51:45 +03:00 |
yuyi
|
5181031480
|
builtin: check array.sort_with_compare() arg mismatch (#11385)
|
2021-09-04 15:02:05 +03:00 |
yuyi
|
923ef733c0
|
checker: disallow array sort with fancy args for now (#11388)
|
2021-09-04 14:34:29 +03:00 |
zakuro
|
19a43db2de
|
fmt: fix removal of comment before embed in struct (#11384)
|
2021-09-04 11:02:04 +03:00 |
Delyan Angelov
|
96ef553f59
|
checker: check sumtype common fields for mutability when assigning too
|
2021-09-03 13:33:25 +03:00 |
playX
|
a4df418a68
|
js: support `[export: 'AnotherName']` for FnDecl codegen (#11377)
|
2021-09-03 13:00:24 +03:00 |
yuyi
|
67ab5b858b
|
checker: fix checking fn prototype mismatch (#11369)
|
2021-09-03 12:26:46 +03:00 |
yuyi
|
939a6417ce
|
cgen: fix reserved keywords as struct field (#11370)
|
2021-09-03 12:18:45 +03:00 |
playX
|
08c517c966
|
strconv,v.gen.js: proper optionals returns, strconv compiles to the JS backend (#11364)
|
2021-09-03 12:16:07 +03:00 |
Enzo
|
d1974f500f
|
cgen: cleanup `Gen.cc_type` (#11357)
|
2021-08-31 23:55:37 +03:00 |
Delyan Angelov
|
a208138283
|
v.markused: support a const used as default value in struct init
|
2021-08-31 15:55:32 +03:00 |
Delyan Angelov
|
f68bdb7805
|
v.markused.walker: support `for x in struct{}` iterators
|
2021-08-31 15:15:05 +03:00 |
Delyan Angelov
|
37b4553f52
|
v.parser: fix running `math` programs, from V installed in folders containing `.v`
|
2021-08-31 09:16:12 +03:00 |
zakuro
|
ebed01c946
|
v.tests: add a test_ fn, that returns an optional (#11340)
|
2021-08-31 08:50:26 +03:00 |
Alexander Medvednikov
|
b72a2de931
|
0.2.4
|
2021-08-30 22:25:14 +03:00 |
playX
|
a9b705bfd8
|
js: fix printing, make builtins for result and option types behave correctly (#11336)
|
2021-08-30 20:47:18 +03:00 |
Delyan Angelov
|
f33f216698
|
v.markused: fix compilation with `-prod -skip-unused` of programs that embed files
|
2021-08-30 17:57:33 +03:00 |
Delyan Angelov
|
9496fcdfe1
|
v.builder: fix compilation with tcc on FreeBSD 13.0
|
2021-08-30 13:21:49 +00:00 |
yuyi
|
f44eb88a8d
|
vfmt: fmt '!(a in/is b)' to 'a !in/is b' (#11335)
|
2021-08-30 09:45:36 +03:00 |
playX
|
61ac7b671d
|
js: add initial support for optional types, IfGuardExpr codegen for `if` (#11332)
|
2021-08-29 14:27:17 +03:00 |
yuyi
|
985fe85de2
|
checker: show concretes type name in error message (#11333)
|
2021-08-29 12:08:57 +03:00 |
Daniel Däschle
|
ac442abc11
|
checker: allow noreturn in match expr (#11126)
|
2021-08-29 11:57:11 +03:00 |
yuyi
|
4ce9ad6a56
|
util/module: fix mod_path_to_full_name() (#11329)
|
2021-08-29 11:56:05 +03:00 |
yuyi
|
8be2be8311
|
all: change 'if !(a in b)' to 'if a !in b' (#11330)
|
2021-08-29 11:55:18 +03:00 |
playX
|
118c5fdcd8
|
js: fix -stats compilation of tests, proper alias codegen (#11327)
|
2021-08-28 16:57:33 +03:00 |
Delyan Angelov
|
f41939f005
|
ci: fix deprecations.out (time is now > 2021/08/28 00:00:00)
|
2021-08-28 13:02:59 +03:00 |
Alexander Medvednikov
|
cf4081e2dd
|
all: more chdir/chmod fixes
|
2021-08-28 12:52:48 +03:00 |
yuyi
|
e90a624738
|
checker: fix generic fn infer variadic parameter with arrays (#11324)
|
2021-08-28 10:32:51 +03:00 |
Alexander Medvednikov
|
853d3cb83e
|
os: make chmod() return error
|
2021-08-28 09:37:24 +03:00 |
Alexander Medvednikov
|
858ba25d55
|
os: make chdir() return error
|
2021-08-28 09:35:39 +03:00 |
William Gooch
|
4d5521bbf7
|
scanner: clarify the float literal warning (#11313)
|
2021-08-27 16:49:29 +03:00 |
crthpl
|
a85467eb0f
|
cgen: fix `expr in shared_array` (#11319)
|
2021-08-27 11:48:32 +03:00 |
Delyan Angelov
|
16455a7660
|
fmt: preserve local fn parameter, when a module const with the same name is declared
|
2021-08-27 09:22:53 +03:00 |
playX
|
bdf11d969a
|
js: add basic support for running tests, fix string.replace_each (#11314)
|
2021-08-26 15:20:54 +03:00 |
yuyi
|
187c1c160b
|
parser: minor cleanup in comp_call() (#11311)
|
2021-08-26 07:57:10 +03:00 |
yuyi
|
b635ff80de
|
fmt: format '1.' to '1.0' (#11312)
|
2021-08-26 07:18:27 +03:00 |
Alexander Medvednikov
|
714fa3215c
|
scanner: make the 1. float error a warning for now
|
2021-08-25 16:58:54 +03:00 |
playX
|
109d5d5847
|
js: `os` now compiles to the JS backend, more builtins & minor codegen fixes (#11302)
|
2021-08-25 14:40:53 +03:00 |
yuyi
|
f257a23313
|
checker: check non-generic struct init (#11300)
|
2021-08-25 14:40:40 +03:00 |
yuyi
|
4d078edb72
|
scanner: no longer allow `1.` float literals (#11301)
|
2021-08-25 14:39:37 +03:00 |
yuyi
|
96398efd2b
|
checker: check array insert/prepend arguments (#11295)
|
2021-08-24 20:28:05 +03:00 |
pancake
|
3c85a03b8a
|
v.gen.native: initial support for the asm statement in the native backend (#11292)
|
2021-08-24 15:30:41 +03:00 |
pancake
|
57b148032f
|
v.gen.native: initial support for cast statements (#11291)
|
2021-08-24 15:26:49 +03:00 |
Lukas Neubert
|
3249f8f0e7
|
cgen: properly cast to sumtypes in array prepend and insert (#11289)
|
2021-08-24 06:25:09 +03:00 |
Alexander Medvednikov
|
4824b409b1
|
builder: simplify the C error message
|
2021-08-24 06:24:35 +03:00 |
playX
|
d78e7e3b2b
|
js: codegen fixes, W.I.P `os` availability for JS backend (#11281)
|
2021-08-23 14:25:02 +03:00 |
playX
|
dd486bb0fb
|
js: match support (#11269)
|
2021-08-22 19:36:49 +03:00 |
yuyi
|
b80777df4b
|
table: fix alias of sumtype method_call (#11268)
|
2021-08-22 17:20:10 +03:00 |
Delyan Angelov
|
ec196cfcd1
|
all: support overriding individual function from .v files in .c.v or .js.v files.
|
2021-08-22 15:51:26 +03:00 |
yuyi
|
2e28c9a4d6
|
checker: remove a duplicate check (#11265)
|
2021-08-22 12:09:14 +03:00 |
playX
|
2f6b2dd189
|
js: math.big support, f{32,64}_bits,from_bits support, typeof(expr).name support (#11260)
|
2021-08-21 17:18:57 +03:00 |
yuyi
|
0d81d0c0c6
|
table, checker: fix sumtype array appending aggregate type values (fix #11197) (#11258)
|
2021-08-21 17:18:01 +03:00 |
pancake
|
02d823fa6e
|
v.gen.native: support infinite loops `for {}` in amd64 and arm64 (#11254)
|
2021-08-20 14:23:15 +03:00 |
pancake
|
82b16453e4
|
v.gen.native: improve error messages for unsupported features (#11253)
|
2021-08-20 14:21:05 +03:00 |
yuyi
|
e87cf8bac6
|
checker: cleanup checker.v (#11251)
|
2021-08-20 10:25:16 +03:00 |
yuyi
|
6201e78201
|
checker: fix generic struct with non-generic interface in generic fn (#11252)
|
2021-08-20 09:28:26 +03:00 |
playX
|
1570e613b5
|
math: inf,nan,fmod for the JS backend (#11246)
|
2021-08-20 01:14:49 +03:00 |
yuyi
|
a440b43630
|
checker, cgen: fix generic struct with non_generic interface (#11240)
|
2021-08-20 01:13:48 +03:00 |
spaceface
|
67e8031a08
|
cgen: fix interface parameters in fn type aliases (#11247)
|
2021-08-20 01:12:31 +03:00 |
Leo Developer
|
7bffabbce2
|
vdoc: add `-comments` and new comment merger (#11221)
|
2021-08-19 10:20:43 +03:00 |
yuyi
|
3d22dc1608
|
all: fix formating Foo<A,B> to Foo<A, B> (#11225)
|
2021-08-18 17:17:21 +03:00 |
div72
|
881510e7ce
|
cgen: fix enum print (#11218)
|
2021-08-18 17:11:12 +03:00 |
spaceface
|
d2ce1f74d6
|
ast.table: fix aggregate field type equality check (#11210)
|
2021-08-18 14:09:54 +03:00 |
yuyi
|
e07678d6f3
|
checker: check using redundant parentheses (#11228)
|
2021-08-18 13:49:50 +03:00 |
spaceface
|
09e854c064
|
cgen: small interface conversion fix (#11229)
|
2021-08-18 13:47:57 +03:00 |
Delyan Angelov
|
9ca99c6f93
|
v.builder: add `-Wl,--allow-multiple-definition` when targeting FreeBSD
|
2021-08-18 12:57:44 +03:00 |
playX
|
0121c8b4fd
|
v.gen.js: fix method calls and other codegen parts, rand module compiles (#11205)
|
2021-08-18 11:33:37 +03:00 |
yuyi
|
c51f83efba
|
checker: fix match expr type mismatch (#11220)
|
2021-08-18 08:52:01 +03:00 |
spaceface
|
7d9969ac17
|
all: support runtime interface conversions (#11212)
|
2021-08-17 21:00:27 +03:00 |
spaceface
|
7c9a1defa4
|
fmt: preserve method receiver mutability in interface decls (#11222)
|
2021-08-17 19:39:53 +03:00 |
yuyi
|
e1c762a616
|
cgen: fix assert fn_call with parentheses (fix #11207) (#11214)
|
2021-08-17 18:21:15 +03:00 |
yuyi
|
8521e227b4
|
cgen: fix if expr of multi stmts (#11208)
|
2021-08-16 21:48:58 +03:00 |
Delyan Angelov
|
405ed584a1
|
v.vmod: return errors instead of panic-ing
|
2021-08-16 16:54:41 +03:00 |
Louis Schmieder
|
482eecbc13
|
cgen: fix comptime selector reserved field names (#11199)
|
2021-08-16 14:58:23 +03:00 |
yuyi
|
90b052b1db
|
v.gen.c: fix error of if_expr in infix_expr (#11200)
|
2021-08-16 11:23:19 +03:00 |
Lukas Neubert
|
1c847e04c8
|
fmt: fix malformed import for incorrect module lookup paths (#11192)
|
2021-08-16 05:15:32 +03:00 |
playX
|
659f823c5c
|
js: initial work on porting rand module to JS backend (#11188)
|
2021-08-15 18:09:51 +03:00 |
Delyan Angelov
|
0be20f1556
|
v.pref: keep the -error-limit option for now too
|
2021-08-15 13:46:50 +03:00 |
Leo Developer
|
b3094b0667
|
checker: abort prematurely on too many errors (#11185)
|
2021-08-15 13:41:51 +03:00 |
Delyan Angelov
|
6843b85063
|
ci: fix `clang -std=c99 -D_DEFAULT_SOURCE -o v vc/v.c` warnings
|
2021-08-15 11:12:48 +03:00 |
Delyan Angelov
|
eef7eea7bc
|
v.pref, v.builder: support `-no-std` (skips passing `-std=c99` to the C backend)
|
2021-08-15 11:05:06 +03:00 |
Delyan Angelov
|
f7cbcc241a
|
v.pref, v.builder: support `-no-rsp` (pass C options directly to the C compiler backend, without writing response files)
|
2021-08-15 10:47:44 +03:00 |
Delyan Angelov
|
f67e5d12e5
|
v.gen.c: fix v_typeof_interface_idx codegen (add `static `)
|
2021-08-15 09:15:33 +03:00 |
Delyan Angelov
|
3ffa6c1664
|
v.pref: fix `./v -usecache -cg run examples/hello_world.v`
|
2021-08-15 08:35:41 +03:00 |
yuyi
|
d3cf53ec41
|
cgen: fix a bug with autofree in if expr (#11182)
|
2021-08-15 07:55:27 +03:00 |
Delyan Angelov
|
d540b3f1a8
|
v.util: improve formatted_error by adding cached_file2sourcelines, so .split_into_lines is called just once (important for long source files with many errors)
|
2021-08-14 23:01:30 +03:00 |
Leo Developer
|
f6d7170e77
|
checker: changes related to warn/error limit (#11184)
|
2021-08-14 22:14:13 +03:00 |
Delyan Angelov
|
1743ad05c0
|
v.util: add a small cache for util.read_file, so reading individual source files is done just once
|
2021-08-14 21:59:28 +03:00 |
Leo Developer
|
8a8a0932f7
|
all: add limit to accumulated errors / warnings (#11183)
|
2021-08-14 19:49:21 +03:00 |
Delyan Angelov
|
deb26b92b9
|
cgen: support `typeof(x).idx`, as well as `iface.type_idx()` (#11178)
|
2021-08-14 17:22:25 +03:00 |
Delyan Angelov
|
900c37aa65
|
v.gen.c: support `T.typ` - an int for the type index of the generic type `T` (#11175)
|
2021-08-14 08:48:25 +03:00 |
playX
|
b72d1e5e86
|
v.gen.js: implement `u64` and `i64` with BigInt (#11174)
|
2021-08-13 21:24:10 +03:00 |
Delyan Angelov
|
34d39ccb64
|
builtin: fix leak in rune.str(), fix leaks in most assert x == y statements in tests (#11091)
|
2021-08-13 18:37:34 +03:00 |
playX
|
aa14fd1b05
|
v.gen.js: support operator overloading (#11171)
|
2021-08-13 10:06:59 +03:00 |
yuyi
|
083a90148d
|
tests: supplement multi-instances generic testing (#11170)
|
2021-08-13 08:38:20 +03:00 |
yuyi
|
579aa7b1b5
|
v.checker: fix multi insts of generics fn with generic struct (#11161)
|
2021-08-12 22:58:02 +03:00 |
Delyan Angelov
|
47884dfd1f
|
builtin: move C. calls to .c.v files (#11164)
|
2021-08-12 21:46:38 +03:00 |
Daniel Däschle
|
6dbc6f233b
|
v.parser: add checks for interoperability (C. or JS.) function declarations (#11140)
|
2021-08-12 10:47:24 +03:00 |
yuyi
|
89a8854e57
|
v.parser: fix generics type name in if_expr (#11156)
|
2021-08-12 10:19:06 +03:00 |
yuyi
|
90adf4d092
|
v.checker: fix multi insts of generics struct with array (#11142)
|
2021-08-11 16:59:13 +03:00 |
Delyan Angelov
|
a64a4d932c
|
v.checker: turn `interface field ... must be initialized` to a notice temporarily
|
2021-08-11 16:39:41 +03:00 |
Enzo
|
9d4d0a9894
|
v.gen.c: generate the closure helper for the choosen target platform, not the current one (#11134)
|
2021-08-11 14:09:40 +03:00 |
wilesun
|
18be9e52be
|
log: avoid using string__plus memory leak (#11128)
|
2021-08-11 09:26:02 +03:00 |
playX
|
70124d2d23
|
js: time module: implement utc,now,local (#11138)
|
2021-08-11 09:22:53 +03:00 |
Enzo
|
da53f818df
|
all: initial support for closures (x64 / linux-only) (#11114)
|
2021-08-10 21:27:15 +03:00 |
pancake
|
2cfb8fd697
|
native: document arm64 registers with comments (#11122)
|
2021-08-10 21:15:32 +03:00 |
yuyi
|
aceaaa681d
|
ast: fix formatting fn variadic of reference param (#11130)
|
2021-08-10 21:14:37 +03:00 |
Daniel Däschle
|
2ae77c1998
|
v.scanner: fix escaped backslash after string interpolation (#11118)
|
2021-08-10 17:04:42 +03:00 |
yuyi
|
11794039e2
|
v.gen.c: fix fn variadic of reference param (#11115)
|
2021-08-10 10:36:11 +03:00 |
pancake
|
e7b8cf17e5
|
v.gen.native: add support for assert statements for amd64 (#11117)
|
2021-08-10 10:29:44 +03:00 |
Enzo
|
506c30a291
|
builtin: remove methods that can be autogenerated (#11109)
|
2021-08-09 15:42:31 +03:00 |
Enzo
|
1a555ab898
|
v.gen.c: fix generation for `string.index` (#11106)
|
2021-08-09 07:39:15 +03:00 |
Daniel Däschle
|
a64b191ce5
|
checker: forbid multiple pointer yields (#11105)
|
2021-08-09 02:11:53 +03:00 |
yuyi
|
eed8c4671f
|
cgen: fix fn mut arg of array (#11104)
|
2021-08-09 01:49:30 +03:00 |
playX
|
7a67a08d2f
|
js: implement codegen for array.sort and implement .any,.all (#11100)
|
2021-08-09 01:46:40 +03:00 |
yuyi
|
1f3f7705a2
|
cgen: fix struct_init with fixed array field (#11099)
|
2021-08-08 10:54:52 +03:00 |
Alexander Medvednikov
|
03ed32f805
|
ast: bring back Table.free() for now
|
2021-08-08 07:07:06 +03:00 |
Alexander Medvednikov
|
eaf8b63dd2
|
cgen: fix a c2v bug with variadics
|
2021-08-08 06:23:22 +03:00 |
Daniel Däschle
|
9af65d8830
|
checker: protect against assigning to a typeless variable (#11094)
|
2021-08-07 18:09:07 +03:00 |
yuyi
|
1d3786ff1e
|
v.parser: fix `if a == Abc{} {` (#11092)
|
2021-08-07 18:05:22 +03:00 |
playX
|
94c321c80d
|
v.gen.js: port fully the array test suite & add fixes (#11073)
|
2021-08-07 17:58:49 +03:00 |
Uwe Krüger
|
c560d58f1e
|
cgen: use heuristic to detect circular reference in auto str (#11090)
|
2021-08-07 14:56:09 +03:00 |
Caden Haustein
|
cf0767ad6c
|
v: add constant folding AST transformation (#11085)
|
2021-08-06 23:19:18 +03:00 |
yuyi
|
ec39e38e14
|
cgen: fix generic method on alias struct receiver (#11080)
|
2021-08-06 21:26:54 +03:00 |
Daniel Däschle
|
3b116d2455
|
cgen: support embedded struct fields on sumtype common fields (#11084)
|
2021-08-06 21:26:19 +03:00 |
Dialga
|
25d49bc615
|
orm: handle empty fields (#11083)
|
2021-08-06 21:25:38 +03:00 |
alula
|
e1cc1665dc
|
cgen: push function arguments in fn_args() (#11086)
|
2021-08-06 20:01:20 +03:00 |
Uwe Krüger
|
e89bed3e25
|
ci: temporarily deactivate test case for #11061 (fixes CI timeouts) (#11079)
|
2021-08-06 12:46:56 +03:00 |
zakuro
|
490dec222f
|
fmt: keep char literal, `'` (#11060)
|
2021-08-06 06:21:28 +03:00 |
Daniel Däschle
|
91ade5bf8c
|
cgen: fix shared field init (#11061)
|
2021-08-06 05:11:03 +03:00 |
Enzo
|
44bacfc931
|
cgen: fix optional generation order (#11070)
|
2021-08-06 03:57:34 +03:00 |
Enzo
|
7346aeca5f
|
cgen: refactor array sort generation (#11067)
|
2021-08-06 03:55:48 +03:00 |
Daniel Däschle
|
8d2567740b
|
parser: make [..] work (#11064)
|
2021-08-06 03:54:24 +03:00 |
yuyi
|
c30cda3daf
|
v.gen.c: fix error of `println(alias of struct)` (#11062)
|
2021-08-05 20:20:10 +03:00 |
yuyi
|
11784279ba
|
checker: check fn_call().sort() (fix #11040) (#11056)
|
2021-08-04 21:23:22 +03:00 |
Daniel Däschle
|
f59119485a
|
v.parser: add check for existing type on sum type declaration (#11054)
|
2021-08-04 18:14:16 +03:00 |
Delyan Angelov
|
f9c279d11d
|
v.checker: make calling a deprecated fn an error, 180 days (6 months) after its deprecation date (#10682)
|
2021-08-04 17:41:00 +03:00 |
Delyan Angelov
|
1bf6d04e37
|
ci: fix failing program_test.v due to deprecation warnings
|
2021-08-04 12:58:06 +03:00 |
yuyi
|
5162c257a2
|
v.parser: minor cleanup in parse_type.v (#11047)
|
2021-08-04 12:49:36 +03:00 |
playX
|
8743b616a0
|
v.gen.js: codegen fixes, add a few builtins, port more array tests (#11049)
|
2021-08-04 12:46:24 +03:00 |
Daniel Däschle
|
800c0e5092
|
vlib: remove deprecated map{} usages as well as deprecated functions (#11035)
|
2021-08-04 12:44:41 +03:00 |
yuyi
|
b870f7a6f1
|
cgen: fix array sort error (#11046)
|
2021-08-04 06:31:57 +03:00 |
yuyi
|
2eb11110d6
|
cgen: fix autofree error of array init with string variable (fix #10427) (#11041)
|
2021-08-04 03:39:20 +03:00 |
Daniel Däschle
|
815c4b7420
|
all: rename generic_struct_inst to generic_inst (#11044)
|
2021-08-04 03:37:27 +03:00 |
pancake
|
00d4c7082e
|
native: add support for print, eprint and eprintln (#11034)
|
2021-08-03 16:04:31 +03:00 |
Alexander Medvednikov
|
80976e640c
|
vweb: remove init_server() from all examples, tutorials, and tests
|
2021-08-03 16:03:16 +03:00 |
playX
|
0455632b1f
|
v.gen.js: fix prefix, postfix and assign codegen and add more array tests (#11031)
|
2021-08-03 14:59:46 +03:00 |
Delyan Angelov
|
0ebad47d2a
|
v doc: fix an infinite recursion in `v doc .` executed in /tmp. Add tests for v.doc.get_parent_mod/1 .
|
2021-08-03 13:36:58 +03:00 |
yuyi
|
fd58e9f819
|
cgen: fix auto str for map of reference struct (fix #11024) (#11028)
|
2021-08-03 08:03:00 +03:00 |
Louis Schmieder
|
a55ba08fad
|
orm: fix time (#11026)
|
2021-08-03 05:17:00 +03:00 |
Leo Developer
|
6dcf72fe9b
|
cgen: dont generate function if its flag is false (#11021)
|
2021-08-03 03:17:22 +03:00 |
Florian Blasius
|
69f31d8d5c
|
checker: check int literal to enum cast (fix #10125) (#10348)
|
2021-08-02 07:12:29 +03:00 |
pancake
|
dbf5c976a3
|
v.gen.native: support more `ifs` constructs for amd64 (#11007)
|
2021-08-01 20:19:02 +03:00 |
Miccah
|
cc9463401e
|
http: change server handler from function to interface (#10994)
|
2021-08-01 15:50:11 +03:00 |
playX
|
836ac54d12
|
v.gen.js: add more array tests and fixes (#11014)
|
2021-08-01 14:08:49 +03:00 |
playX
|
77e9ed417f
|
v.gen.js: fix segfault when anonymous function is declared with assertion (#11009)
|
2021-08-01 07:27:44 +03:00 |
Delyan Angelov
|
33e4dc3ad3
|
ci: fix coutput_test.v on windows by fixing `-o -` on windows
|
2021-08-01 00:27:06 +03:00 |
Uwe Krüger
|
6068777e03
|
parser/checker: deduce type of global from initialization expression (#11005)
|
2021-07-31 16:35:19 +03:00 |
Delyan Angelov
|
e374ffb590
|
checker: add an early checker error for `node.left_types.len != node.left.len` in assignments
|
2021-07-31 14:57:29 +03:00 |
Delyan Angelov
|
9082712e10
|
ci: skip coutput_test.v on windows temporarily
|
2021-07-31 14:17:33 +03:00 |
Delyan Angelov
|
1231e5df20
|
debug coutput_test.v on windows
|
2021-07-31 13:27:28 +03:00 |
Delyan Angelov
|
456a19f6d4
|
ci: fix coutput_test.v on windows
|
2021-07-31 13:16:33 +03:00 |
Delyan Angelov
|
08016ab374
|
v.gen.c: add vlib/v/gen/c/coutput_test.v, to ease testing of produced C output
|
2021-07-31 12:14:56 +03:00 |
Delyan Angelov
|
033b027361
|
v.gen.c: use `const type* const_x` for `const_x &type` fn args
|
2021-07-31 08:42:40 +03:00 |
Delyan Angelov
|
26b7712bbe
|
tests: add a regression test for the comptime evaluated consts, using a _constructor function
|
2021-07-30 20:33:08 +03:00 |
Louis Schmieder
|
0bb587c8c2
|
checker: fix defer ident handling & fix defer optional error message (#10975)
|
2021-07-30 20:29:06 +03:00 |
Uwe Krüger
|
a7c2aaf35b
|
cgen: initialize globals directly for simple cases (#11002)
|
2021-07-30 19:20:45 +03:00 |
Delyan Angelov
|
f67922782e
|
ci: fix tools using `import math`, for `const x = i64(-9223372036854775807-1)` fails
|
2021-07-30 17:56:46 +03:00 |
Delyan Angelov
|
06d1422a05
|
ast,checker,cgen: support simple `const x = u16(0x53)` without using _vinit()
|
2021-07-30 17:22:27 +03:00 |
playX
|
a7ca051016
|
v.gen.js: fix for array filter, add more tests and other fixes (#10999)
|
2021-07-30 11:17:11 +03:00 |
Delyan Angelov
|
c31397e17d
|
tests: fix `v test-self` running locally
|
2021-07-30 09:26:05 +03:00 |
Alexander Medvednikov
|
ec92964bb0
|
checker: make interface init check a warning for now
|
2021-07-30 03:32:02 +03:00 |
Delyan Angelov
|
7d5b6d2b48
|
fix running `v run file.v` in a current working folder containing a run/ subfolder
|
2021-07-30 03:28:54 +03:00 |
Louis Schmieder
|
7c504920e1
|
checker: fix negative values for unsigned integers (#10976)
|
2021-07-30 03:27:59 +03:00 |
Daniel Däschle
|
6fa8e4269e
|
checker: force interface init (#10910)
|
2021-07-30 03:18:20 +03:00 |
pancake
|
6337325676
|
v.gen.native: improve few x64 generators (#10996)
|
2021-07-30 01:26:49 +03:00 |
Uwe Krüger
|
44d8dcc418
|
ci,globals: hot fix for hanging test case (#10997)
|
2021-07-29 22:06:08 +03:00 |
Lukas Neubert
|
1e255d3ab1
|
fmt: cleanup redundant generic types code (#10990)
|
2021-07-29 15:21:10 +03:00 |
yuyi
|
57f30668e3
|
v.checker: fix `a.map(voidfn(it))` (#10985)
|
2021-07-29 11:43:56 +03:00 |
playX
|
75c41252d9
|
js: add more tests & add array prepend codegen (#10988)
|
2021-07-29 11:39:36 +03:00 |
Uwe Krüger
|
08aa6c08f6
|
all: more improvements for global variables (#10986)
|
2021-07-29 10:57:31 +03:00 |
Delyan Angelov
|
7547882c11
|
ci: fix failing fn_args.vv (use `zu8` as a temporary name of the unaliased `u8` type, since `uu8` is already used in fn_args.vv as a function name)
|
2021-07-29 10:14:55 +03:00 |
Delyan Angelov
|
7a9b326200
|
ci: fix -cstrict rebuilding of V with clang
|
2021-07-29 09:54:52 +03:00 |
Alexander Medvednikov
|
1343ec7444
|
builtin: fix temporary u8 alias
|
2021-07-29 06:42:22 +03:00 |
Alexander Medvednikov
|
0b9b80e0c9
|
cgen: register u8
|
2021-07-29 05:02:13 +03:00 |
Alexander Medvednikov
|
628498e0dc
|
table: register u8 type
|
2021-07-29 05:00:03 +03:00 |
Alexander Medvednikov
|
65126efdc3
|
builtin: remove u8 for now
|
2021-07-28 22:36:04 +03:00 |
Delyan Angelov
|
d25bd95a0e
|
v: support -show-depgraph in addition to -show-callgraph
|
2021-07-28 16:42:11 +03:00 |
playX
|
e3cf95b058
|
js: add more tests for array, support array insert_many, minor fixes for references (#10983)
|
2021-07-28 13:01:00 +03:00 |
yuyi
|
9f4431544d
|
checker: fix typo in selector_expr() (#10977)
|
2021-07-28 08:28:55 +03:00 |
Uwe Krüger
|
45ad48d76a
|
cgen: properly handle initialization expression for globals (#10981)
|
2021-07-28 08:11:55 +03:00 |
Uwe Krüger
|
abd17ddb6a
|
cgen: initialize globals with default initializer when none is given. (#10979)
|
2021-07-27 20:14:30 +03:00 |
Alexander Medvednikov
|
a56f579e0d
|
Revert "cgen: define new u8 type"
This reverts commit b7f2adb69c .
|
2021-07-27 19:38:48 +03:00 |
Alexander Medvednikov
|
b7f2adb69c
|
cgen: define new u8 type
|
2021-07-27 19:07:47 +03:00 |
Delyan Angelov
|
ef0161c233
|
v.markused: handle compiling vweb, `-live` and orm example programs
|
2021-07-27 15:50:42 +03:00 |
Delyan Angelov
|
b0a721b2ec
|
js: draft support for compiling `-b js x_test.v`
|
2021-07-27 13:49:47 +03:00 |
Delyan Angelov
|
6e0c9f637d
|
v.markused: support `import json` programs too
|
2021-07-27 13:00:07 +03:00 |
Delyan Angelov
|
6134c4870b
|
v.util: extract v.util.version, use it to speed up building `v repl`, `v up` and `v doctor`
|
2021-07-27 12:59:56 +03:00 |
yuyi
|
cb7be87d4e
|
parser: fix struct init and assign using `sql` variable (#10968)
|
2021-07-26 21:14:31 +03:00 |
yuyi
|
4cf91a28f6
|
checker: fix generics interface with multi generic types (#10964)
|
2021-07-26 08:54:57 +03:00 |
Delyan Angelov
|
b666482d84
|
ci: fix the vinix-build job
|
2021-07-26 08:50:05 +03:00 |
Delyan Angelov
|
b44f81528f
|
v.gen.c: fix codegen for `const a = u64(5) + 5`
|
2021-07-26 08:06:59 +03:00 |
Delyan Angelov
|
db5e0f2117
|
v.gen.c: fix cgen regression after f457b94 (prevented vinix builds), add tests
|
2021-07-25 23:31:23 +03:00 |
Delyan Angelov
|
684c10af1f
|
json: support for a [required] field attribute (#10955)
|
2021-07-25 17:27:37 +03:00 |
Alexander Medvednikov
|
e246ed9818
|
cgen: fix VUNREACHABLE on freebsd/tcc
|
2021-07-25 16:29:05 +03:00 |
yuyi
|
ab20b8c53a
|
cgen: fix generics interface with multi generic structs (#10950)
|
2021-07-25 15:54:22 +03:00 |
Delyan Angelov
|
0bcb955258
|
checker: fix regression of anon fns that have loops with break/continue
|
2021-07-25 10:46:31 +03:00 |
Uwe Krüger
|
55c5b9ce7b
|
cgen: panic with error message when `go` command fails (#10943)
|
2021-07-25 01:13:34 +03:00 |
Daniel Däschle
|
a09324faa9
|
scanner: remove pos 0 hack which is no longer needed (#10935)
|
2021-07-25 01:13:07 +03:00 |
Louis Schmieder
|
1943da54a5
|
orm: integrate psql to orm (#10933)
|
2021-07-24 20:49:40 +03:00 |
zakuro
|
3979e5c5ff
|
v.parser: show better position for sort struct init warning (#10939)
|
2021-07-24 20:41:59 +03:00 |
Daniel Däschle
|
3be8ef3b5a
|
checker: check duplicated field and method (only for fields that are anon-fns for now) (#10927)
|
2021-07-24 16:06:09 +03:00 |
playX
|
f51fa7e665
|
v.gen.js: fix references and add iterator to map (#10938)
|
2021-07-24 15:35:17 +03:00 |
Delyan Angelov
|
45a15755b8
|
v.builder: implement -show-callgraph
|
2021-07-24 13:32:56 +03:00 |
Delyan Angelov
|
c8e671d88c
|
v.pref: support a `-show-callgraph` option
|
2021-07-24 13:32:56 +03:00 |
Delyan Angelov
|
a4c9aeab14
|
v.ast.walker: pass nodes by reference
|
2021-07-24 13:32:56 +03:00 |
Delyan Angelov
|
9ffbda3833
|
v.scanner: improve error diagnostic when scanner's file_path is not a file
|
2021-07-24 13:32:55 +03:00 |
Delyan Angelov
|
b9771ea120
|
v.checker: small cleanup for incomplete match errors
|
2021-07-24 13:32:55 +03:00 |
Delyan Angelov
|
72c56ccc85
|
v.builder: use os.write_file/os.write_file_array for writing full files to disk.
|
2021-07-24 13:32:55 +03:00 |
yuyi
|
29cda252f1
|
builtin: fix multiple array init (#10929)
|
2021-07-23 23:25:12 +03:00 |
Louis Schmieder
|
3d907caa3f
|
gen: fix comptime attrs stmts (#10925)
|
2021-07-23 23:24:56 +03:00 |
Uwe Krüger
|
1e5627e777
|
parser: don't require unary `>` prefix for `select` timeout (#10928)
|
2021-07-23 23:24:27 +03:00 |
Louis Schmieder
|
1999850f88
|
checker: disallow labels in defer statements (#10901)
|
2021-07-23 22:35:05 +03:00 |
playX
|
69cbdf9fdc
|
v.gen.js, os_js: port the OS module to JS (#10872)
|
2021-07-23 18:04:36 +03:00 |
Delyan Angelov
|
6313ed6a79
|
checker,cgen: fix `-os cross` support for `$if !solaris { #include <sys/ptrace.h> }`
|
2021-07-23 16:24:42 +03:00 |
Delyan Angelov
|
c797e1460d
|
checker: do not skip any of the top level `$if OS {` branches in `-os cross` mode
|
2021-07-23 15:53:03 +03:00 |
yuyi
|
f5776eb259
|
cgen: fix multiple assign array index (#10926)
|
2021-07-23 15:46:18 +03:00 |
Louis Schmieder
|
26db3b0995
|
orm: redesign orm (re-write it in V) (#10353)
|
2021-07-23 12:33:55 +03:00 |
Delyan Angelov
|
ad41cd5c6f
|
cgen: fix `dump(fn_name)` (closes #10912)
|
2021-07-23 12:24:12 +03:00 |
Lukas Neubert
|
5e4cbcc1e3
|
fmt: unify struct field align code (#10887)
|
2021-07-23 12:12:09 +03:00 |
Lukas Neubert
|
3cc54d8e81
|
vfmt: split up asm code into more granular methods, add test (#10878)
|
2021-07-23 08:58:06 +03:00 |
Daniel Däschle
|
091ce6cc08
|
cgen: fix several sort declarations (#10919)
|
2021-07-23 08:55:55 +03:00 |
Daniel Däschle
|
a2de3ffcdb
|
checker: check if condition optional (#10921)
|
2021-07-23 08:52:51 +03:00 |
shadow
|
fe5e3c452f
|
parser: disable generic type aliases (#10917)
|
2021-07-23 01:17:16 +03:00 |
Daniel Däschle
|
2c0c211c79
|
all: implement accessing embedded field and method of aggregate (#10907)
|
2021-07-23 01:14:39 +03:00 |
Daniel Däschle
|
f40090e8ff
|
checker: fix break inside anon fn (#10914)
|
2021-07-23 01:13:36 +03:00 |
Daniel Däschle
|
ed234188b7
|
scanner: fix single backslash in raw string (#10890)
|
2021-07-22 17:02:11 +03:00 |
Louis Schmieder
|
742f6f849c
|
checker: check using a map as a struct init in parameter (#10904)
|
2021-07-22 10:42:59 +03:00 |
Daniel Däschle
|
054bd67490
|
cgen: don't change field name of c structs (#10894)
|
2021-07-22 01:37:49 +03:00 |
Delyan Angelov
|
06de9c799c
|
Revert "gen: add type name to comp for (#10881)"
Reason: 713a079 is more general and provides the same information.
This reverts commit dd3ee20566 .
|
2021-07-21 23:56:00 +03:00 |
Louis Schmieder
|
dd3ee20566
|
gen: add type name to comp for (#10881)
|
2021-07-21 23:45:08 +03:00 |
Uwe Krüger
|
713a079684
|
cgen: properly support `typeof()`, sizeof(), ... in compile time `for` (#10896)
|
2021-07-21 23:43:30 +03:00 |
Daniel Däschle
|
12884e9eb7
|
checker: disallow invalid pointer arithmetic (#10888)
|
2021-07-21 23:39:49 +03:00 |
yuyi
|
ec87f4ee99
|
table: fix error of generics interface declaration (#10883)
|
2021-07-21 15:24:52 +03:00 |
Lukas Neubert
|
38100faecf
|
fmt, parser: fix pos.last_line for assembly blocks (#10877)
|
2021-07-21 11:48:12 +03:00 |
Daniel Däschle
|
aebb028349
|
gen: fix C keyword escape to _v_ instead of just v_ (#10876)
|
2021-07-21 11:46:04 +03:00 |
shadow
|
591af866ba
|
checker: prohibit returning a fixed array (#10882)
|
2021-07-21 11:39:22 +03:00 |
Delyan Angelov
|
d41a4ec662
|
v test-self: check unsafe_test.v, match_test.v, match_in_fn_call_test.v with -cstrict
|
2021-07-20 19:34:16 +03:00 |
Delyan Angelov
|
24c59881f5
|
v.gen.c: do not use precomputed const values in -usecache mode (fix `v test-all` on M1)
|
2021-07-20 17:52:07 +03:00 |
Daniel Däschle
|
3f5e3c4bfe
|
gen: fix haiku platform (#10875)
|
2021-07-20 16:13:23 +03:00 |
Delyan Angelov
|
2c9f6899ba
|
v.gen.c: fix `v -cstrict -o vtmp_werror cmd/v` on Apple M1
|
2021-07-20 16:09:47 +03:00 |
Delyan Angelov
|
5098334e65
|
os: add execute_or_exit(cmd), use it consistently instead of execute_or_panic(cmd)
|
2021-07-20 15:22:04 +03:00 |
yuyi
|
850a715c79
|
table: minor cleanup in does_type_implement_interface() (#10870)
|
2021-07-20 15:19:02 +03:00 |
Uwe Krüger
|
f457b94fe4
|
cgen: properly support reference args in receivers and arithmetic op methods (#10873)
|
2021-07-20 15:08:32 +03:00 |
Lukas Neubert
|
05d0288e8d
|
fmt: move asm related code into it's own file (#10874)
|
2021-07-20 15:07:15 +03:00 |
Daniel Däschle
|
f6402eae10
|
checker: check `match` with type alias (#10863)
|
2021-07-20 15:06:36 +03:00 |
Daniel Däschle
|
60b705b4c4
|
checker, gen: implement basic struct embed direct field init support (#10871)
|
2021-07-20 15:06:06 +03:00 |
Daniel Däschle
|
ad3835b598
|
parser: deprecate short struct init (#10842)
|
2021-07-20 11:17:08 +03:00 |
Uwe Krüger
|
de39bba7bd
|
v.gen.c: fix calling pointer receiver on function return result (#10866)
|
2021-07-20 08:30:07 +03:00 |
Enzo
|
1db354c360
|
v.gen.c: fix codegen ordering problem with interfaces with interface fields (#10862)
|
2021-07-19 19:57:12 +03:00 |
Daniel Däschle
|
9127e202d5
|
v.parser: fix error on empty name expr (#10860)
|
2021-07-19 17:09:51 +03:00 |
playX
|
425ca5e3c3
|
v.gen.js: add three backend options for JS, and comptime if support (#10859)
|
2021-07-19 15:55:03 +03:00 |
yuyi
|
8e99a018df
|
checker, cgen: fix generics interface method (#10858)
|
2021-07-19 13:29:46 +03:00 |
yuyi
|
cf82bd3407
|
checker: fix fixed array with const unint type size (fix #10826) (#10853)
|
2021-07-19 12:44:03 +03:00 |
yuyi
|
fdba3607af
|
checker: fix generics fn selector expr with unexpected symbol (#10851)
|
2021-07-19 09:16:15 +03:00 |
Delyan Angelov
|
83b0a80ff4
|
ci: fix MSVC build (delay const string initialiastion to _vinit)
|
2021-07-19 08:20:09 +03:00 |
Delyan Angelov
|
8ea576783b
|
tests: fix failed consts test (it now works properly)
|
2021-07-19 01:18:39 +03:00 |
Delyan Angelov
|
241a7b760d
|
strconv,checker,cgen: fix -cstrict compilation of hello_world.v
|
2021-07-19 01:08:48 +03:00 |
Delyan Angelov
|
48546d0f45
|
all: do compile time const evaluation for `const x = "abc" + "xyz"` and `const x = 16 * 1024 + 5` (fix const prealloc_block_size)
|
2021-07-18 22:59:18 +03:00 |
Delyan Angelov
|
016240d00b
|
v: support `-o - x_test.v` too, describe `-o -` in the `v help` screen
|
2021-07-18 16:41:32 +03:00 |
Delyan Angelov
|
a007dd5d22
|
builder: support `-o -` to print the generated C/JS source to stdout
|
2021-07-18 16:26:50 +03:00 |
yuyi
|
a5c784830b
|
all: simplify global_scope processing (#10848)
|
2021-07-18 15:29:34 +03:00 |
shadowninja55
|
eb65ad078d
|
checker: prohibit passing non-lvalue as `voidptr` (#10838)
|
2021-07-18 15:04:16 +03:00 |
playX
|
d5e0fa6d1b
|
v.gen.js: port string methods and fix booleans (#10824)
|
2021-07-18 09:00:20 +03:00 |
yuyi
|
8b8f496762
|
checker: fix generics fn return generic interface (fix #10818) (#10831)
|
2021-07-18 08:55:19 +03:00 |
Delyan Angelov
|
6edfb2c7fe
|
v.parser: eliminate PrefixExpr from `&Type(x).name` and `&Type(x)[idx]` too (fix vinix build)
|
2021-07-17 20:20:20 +03:00 |
Delyan Angelov
|
fc8a8e3b6f
|
ci: fix failure for function_stored_in_global.vv
|
2021-07-17 18:19:20 +03:00 |
Delyan Angelov
|
568aa742b2
|
v.parser: improve conditions for debugging ast.CastExpr parsing
|
2021-07-17 17:49:29 +03:00 |
yuyi
|
3a0fa550b6
|
checker: fix generics fn inferring map type (fix #10835) (#10839)
|
2021-07-17 17:49:21 +03:00 |
spaceface
|
22fcbe70a2
|
checker: allow omitting `{}` in trailing struct args (#10832)
|
2021-07-17 15:44:44 +03:00 |
crthpl
|
ec47cda386
|
cgen: fix other generic pointer cases (#10834)
|
2021-07-17 11:51:42 +03:00 |
William Gooch
|
51dd8304bb
|
tools: make the `v` REPL help screen look nicer (#10833)
|
2021-07-17 11:23:29 +03:00 |
shadowninja55
|
355f46f475
|
gen: implement `thread.str()` (#10820)
|
2021-07-17 11:19:28 +03:00 |
shadowninja55
|
0d587d3580
|
checker: prohibit using non-lvalue as mut receiver (#10790)
|
2021-07-16 13:03:40 +03:00 |
yuyi
|
fe64346ae2
|
parser: minor optimization of array filtering judgement (#10821)
|
2021-07-16 12:00:37 +03:00 |
Delyan Angelov
|
cbe4ac703e
|
v.builder: remove temporary file.js file after `v -b js run file.v`
|
2021-07-16 10:03:46 +03:00 |
Delyan Angelov
|
0723daf788
|
tests: add vlib/v/gen/js/program_test.v to ease regression testing `-b js` programs
|
2021-07-16 09:36:45 +03:00 |
spaceface
|
ebc34c237b
|
cgen: fix generating invalid Option decls for generic interfaces (#10817)
|
2021-07-15 22:15:25 +03:00 |
yuyi
|
aca66d503d
|
parser: minor optimization in call_expr() (#10809)
|
2021-07-15 17:47:59 +03:00 |
yuyi
|
ddaac5af92
|
checker: fix generics with multi generic struct types (#10808)
|
2021-07-15 17:39:55 +03:00 |
playX
|
06edbc8a38
|
v.gen.js: implement most of array and map methods in builtin/js (#10806)
|
2021-07-15 17:36:53 +03:00 |
shadowninja55
|
7c0be629ab
|
checker: prohibit fixed array to fixed array assignment where elem_typ is a pointer (#10775)
|
2021-07-15 08:38:03 +03:00 |
spaceface
|
6e942bf4c2
|
v: initial support for generic interfaces and sumtypes (#10795)
|
2021-07-15 08:29:13 +03:00 |
yuyi
|
7687b28d8d
|
cgen: remove Gen.write_expr_to_string() (#10804)
|
2021-07-15 08:15:28 +03:00 |
shadowninja55
|
de6918b8c9
|
checker: fix hex literal overflow check (#10782)
|
2021-07-14 22:33:02 +03:00 |
yuyi
|
fe1cf2ea26
|
cgen: fix error of the map literals method call (#10791)
|
2021-07-14 22:03:47 +03:00 |
playX
|
9c710b2a34
|
v.gen.js: improve reference support (#10793)
|
2021-07-14 11:43:48 +03:00 |
playX
|
0e08d15bc4
|
v.gen.js: add basic support for references (#10785)
|
2021-07-13 22:52:01 +03:00 |
Delyan Angelov
|
24f5d0afc4
|
ci: fix `-o x.c` regression introduced in ff62b27
|
2021-07-13 22:13:28 +03:00 |
Delyan Angelov
|
ff62b27ef0
|
v.builder: remove unused vjs_cc vestige (the -b js backend does its job now)
|
2021-07-13 20:32:30 +03:00 |
yuyi
|
ed78e638b3
|
cgen: fix if_expr with array methods cond (#10786)
|
2021-07-13 19:51:49 +03:00 |
Daniel Däschle
|
78a41969f6
|
vdoc: fancier attributes (#10789)
|
2021-07-13 19:44:22 +03:00 |
playX
|
ee00d80931
|
v.gen.js: support global declarations in the JS backend (#10773)
|
2021-07-13 15:36:06 +03:00 |
Delyan Angelov
|
d444dbd4d9
|
tests: add a multilevel pointer cast test too
|
2021-07-13 14:08:50 +03:00 |
Delyan Angelov
|
bd0653abab
|
parser: cleanup `&Type(x)` more, add fmt regression test
|
2021-07-13 13:12:37 +03:00 |
crthpl
|
5089eb4a84
|
parser: fix pointer cast expressions hack (#10777)
|
2021-07-13 12:01:24 +03:00 |
Delyan Angelov
|
1bf6743987
|
vinix: support -os vinix (part 2)
|
2021-07-13 11:41:45 +03:00 |
Delyan Angelov
|
05466ce1b6
|
v.gen.c: fix cheaders.v
|
2021-07-13 11:30:51 +03:00 |
Delyan Angelov
|
85564b7b83
|
vinix: support -os vinix (part 1)
|
2021-07-13 11:24:09 +03:00 |
yuyi
|
2a9d6fef9f
|
cgen: fix initialization errors with fixed array aliases (#10784)
|
2021-07-13 10:51:54 +03:00 |
shadowninja55
|
d1f1c5ae51
|
v doc: add attribute tags to `v doc -f html` (#10778)
|
2021-07-13 08:27:20 +03:00 |
shadowninja55
|
7694afa44c
|
checker: check that `mut` args are lvalues (#10779)
|
2021-07-13 08:06:39 +03:00 |
shadowninja55
|
02f0a30555
|
checker: ensure hex character literals don't overflow in strings (#10725)
|
2021-07-12 22:37:31 +03:00 |
yuyi
|
1b26ce1f7a
|
cgen: fix array of alias's slice() (#10772)
|
2021-07-12 15:59:01 +03:00 |
yuyi
|
581280e6fc
|
parser: cleanup check_cross_variables() (#10754)
|
2021-07-12 12:10:42 +03:00 |
Delyan Angelov
|
b5f1cf80a6
|
ci: fix regression bug in formatting of go_array_wait_test.v (caused by 974737f )
|
2021-07-12 10:55:30 +03:00 |
Delyan Angelov
|
974737f26b
|
vfmt: keep `module mymodule ... x := []thread MyStruct{}` as it is
|
2021-07-12 10:46:36 +03:00 |
yuyi
|
5c7881feb7
|
checker: fix error of for_in alias (#10770)
|
2021-07-12 09:17:00 +03:00 |
yuyi
|
719bf63f16
|
scanner: fix nested multiline comments (#10760)
|
2021-07-12 07:17:38 +03:00 |
zakuro
|
ba9b53cc4d
|
cgen: fix error when using anon generics fn that have generics struct arg (#10751)
|
2021-07-11 19:30:41 +03:00 |
yuyi
|
a3ed9c1bbd
|
cgen: fix fixed array of function str() (fix #10744) (#10753)
|
2021-07-11 19:24:33 +03:00 |
yuyi
|
938e9b61b5
|
parser: check undefined variables in assign_stmt (#10755)
|
2021-07-11 19:09:35 +03:00 |
yuyi
|
c65bfc122d
|
checker: check assigning array_init with no type (#10757)
|
2021-07-11 18:52:01 +03:00 |
Delyan Angelov
|
9d241f75eb
|
v.markused: add string_at_with_check to the roots
|
2021-07-11 12:03:37 +03:00 |
yuyi
|
71e8237483
|
parser: check undefined variables in array inits (#10746)
|
2021-07-11 03:49:07 +03:00 |
shadowninja55
|
b222e4efae
|
checker: change expr depth limit to 150 (#10745)
|
2021-07-10 20:24:53 +03:00 |
zakuro
|
cb14e42af8
|
fmt: fix removal of selective imported Enum (#10729)
|
2021-07-10 11:06:01 +03:00 |
shadowninja55
|
a1088275b9
|
checker: prohibit illegal types in string interpolation literals (#10705)
|
2021-07-10 00:00:12 +03:00 |
Louis Schmieder
|
eb96ad11d9
|
checker: add pkgconfig to comptime if (#10692)
|
2021-07-09 18:17:04 +03:00 |
shadowninja55
|
aa5b609d95
|
checker: check integer literals (#10706)
|
2021-07-09 14:02:10 +03:00 |
yuyi
|
310bb1a8a6
|
cgen: fix generics with variadic generic args (#10700)
|
2021-07-09 12:09:30 +03:00 |
pancake
|
6f234ee34a
|
v.pref: uncomment the `$if serenity {}` block, after vc gets regenerated (#10716)
|
2021-07-09 11:57:43 +03:00 |
Delyan Angelov
|
972cbe2e9a
|
serenity: add more support
|
2021-07-09 11:33:51 +03:00 |
pancake
|
151cd0bfe6
|
all: SerenityOS support (#10702)
|
2021-07-09 03:26:43 +03:00 |
Delyan Angelov
|
13917dc095
|
Revert "cgen: fix g.typ() not adding correct number of * for generic types (#10687)"
This reverts commit bfafdb69c9 .
|
2021-07-08 22:15:44 +03:00 |