1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

1417 Commits

Author SHA1 Message Date
Delyan Angelov
f2cda1a529
parser: update p.inside_or_expr consistently (fix v fmt -w vls/analyzer/symbol_registration.v) 2021-10-19 13:36:10 +03:00
yuyi
6aca360507
parser: fix checking unexpected name (#12233) 2021-10-19 12:27:59 +03:00
playX
a3de67de28
js: support WASM interoperability using wasm_import/wasm_export fn tags (#12212) 2021-10-18 10:56:21 +03:00
ChAoS_UnItY
4d1307f29b
all: index accessor in array init expression (#12181) 2021-10-15 03:57:49 +03:00
yuyi
c9b2f878b3
parser, checker: optimize checking generic struct type mismatch (#12179) 2021-10-15 00:11:31 +03:00
Delyan Angelov
4c2cb1b6df
vdoc: prevent leaking to the docs the pure_v_but_overriden_by_ prefix 2021-10-14 11:47:50 +03:00
Alexander Ivanov
0386f2bbea
checker: add an interface check for mutability, fixes #1081, fixes #7038 (#11963) 2021-10-11 15:41:31 +03:00
ChAoS_UnItY
3647fc6633
parser: perform constant folding before checking size of fixed array (#12126) 2021-10-10 01:55:25 +03:00
pancake
32259af2c9
v.parser: improve error message when no arch is set 'asm{}' (#12093) 2021-10-07 03:44:27 +03:00
yuyi
f1742a6f62
v.ast: change 'type.to_ptr()' to 'type.ref()' (#12086) 2021-10-06 20:49:39 +03:00
crthpl
7cf9c198fe
asm: add segment addressing and fix [10] (#12068) 2021-10-05 18:57:15 +03:00
yuyi
82e6d6e51d
cgen: fix threads array wait without go calls (fix #12009) (#12050) 2021-10-03 18:24:44 +03:00
crthpl
85b58b03a3
cgen: parallelize (#10844) 2021-09-28 10:28:04 +03:00
Delyan Angelov
6a2ef733de
v.parser: add a generated .all(.flag1|.flag2) method to [flag] enums
Unlike `.has(.flag1|.flag2)`, which is true, for any of `.flag1` or `.flag2`,
the new method `.all()` tests whether *all flags* are set at the same time.
2021-09-26 21:40:44 +03:00
Delyan Angelov
bf2569a9a8
all: support mut volatile x := 123 declarations (#11940) 2021-09-22 13:06:30 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
ChAoS_UnItY
95136cbfc7
all: add unsigned shift operators (#11536) 2021-09-21 14:02:17 +03:00
Alexander Medvednikov
f6bdc6b87e tmpl: fix <div> inside <div> 2021-09-21 07:54:10 +03:00
Enzo
b2ecca3966
all: remove size_t (#11478) 2021-09-21 02:12:38 +03:00
05st
f9f4867c25
tmpl: fix $tmpl comptime operation only working in return statement (#11541) 2021-09-19 23:22:26 +03:00
yuyi
8862c3af0f
all: implement if foo in [Foo1, Foo2, Foo3] (#11486) 2021-09-14 15:56:12 +03:00
Daniel Däschle
b63ec8fbcf
checker: require params attribute to use struct as keyword arguments in function (#11135) 2021-09-14 00:05:30 +03:00
playX
b9dfc89aa9
js: prefix V builtin functions, so they do not overlap with JS (#11483) 2021-09-13 11:44:55 +03:00
Enzo
ccf6285f82
checker: allow mut arg on C functions (#11430) 2021-09-11 14:25:38 +03:00
Daniel Däschle
be0c54caf9
checker: require or block for sumtype map (#11089) 2021-09-10 16:07:39 +03:00
yuyi
af75789bbf
parser: fix reference var followed by block expr (#11456) 2021-09-10 15:31:09 +03:00
Dialga
66ef27a776
tmpl: fix escaping @ (#11452) 2021-09-09 20:27:24 +03:00
Alexander Medvednikov
ab3adf3346 checker: no longer allow automatic dereferncing in a = b 2021-09-09 20:21:01 +03:00
Enzo
bef3390f36
builtin: fix compilation (#11445) 2021-09-08 14:19:21 +03:00
Enzo
e3b65092d6
parser: deprecate size_t (#11443) 2021-09-08 13:09:32 +03:00
Ruofan XU
892971024e
parser: fix generic detection of foo < bar<T>() (#11434) 2021-09-08 05:54:15 +03:00
Enzo
79c2bca401
v.scanner: fix error messages with unexpected token ? (#11428) 2021-09-07 20:46:56 +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
Dialga
87f38bf6e7
tmpl: don't trim whitespace and escape \ (#11393) 2021-09-06 03:12:53 +03:00
zakuro
19a43db2de fmt: fix removal of comment before embed in struct (#11384) 2021-09-04 11:02:04 +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
yuyi
187c1c160b
parser: minor cleanup in comp_call() (#11311) 2021-08-26 07:57: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
3d22dc1608
all: fix formating Foo<A,B> to Foo<A, B> (#11225) 2021-08-18 17:17:21 +03:00
Leo Developer
b3094b0667
checker: abort prematurely on too many errors (#11185) 2021-08-15 13:41:51 +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
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
Enzo
da53f818df
all: initial support for closures (x64 / linux-only) (#11114) 2021-08-10 21:27:15 +03:00
yuyi
1d3786ff1e
v.parser: fix if a == Abc{} { (#11092) 2021-08-07 18:05:22 +03:00
Daniel Däschle
8d2567740b
parser: make [..] work (#11064) 2021-08-06 03:54:24 +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