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

1388 Commits

Author SHA1 Message Date
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
yuyi
5162c257a2 v.parser: minor cleanup in parse_type.v (#11047) 2021-08-04 12:49:36 +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
Daniel Däschle
815c4b7420 all: rename generic_struct_inst to generic_inst (#11044) 2021-08-04 03:37:27 +03:00
Florian Blasius
69f31d8d5c checker: check int literal to enum cast (fix #10125) (#10348) 2021-08-02 07:12:29 +03:00
Uwe Krüger
6068777e03 parser/checker: deduce type of global from initialization expression (#11005) 2021-07-31 16:35:19 +03:00
Uwe Krüger
08aa6c08f6 all: more improvements for global variables (#10986) 2021-07-29 10:57:31 +03:00
yuyi
cb7be87d4e parser: fix struct init and assign using sql variable (#10968) 2021-07-26 21:14:31 +03:00
zakuro
3979e5c5ff v.parser: show better position for sort struct init warning (#10939) 2021-07-24 20:41:59 +03:00
Uwe Krüger
1e5627e777 parser: don't require unary > prefix for select timeout (#10928) 2021-07-23 23:24:27 +03:00
shadow
fe5e3c452f parser: disable generic type aliases (#10917) 2021-07-23 01:17:16 +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
ad3835b598 parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +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
a5c784830b all: simplify global_scope processing (#10848) 2021-07-18 15:29:34 +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
yuyi
fe64346ae2 parser: minor optimization of array filtering judgement (#10821) 2021-07-16 12:00:37 +03:00
yuyi
aca66d503d parser: minor optimization in call_expr() (#10809) 2021-07-15 17:47:59 +03:00
spaceface
6e942bf4c2 v: initial support for generic interfaces and sumtypes (#10795) 2021-07-15 08:29:13 +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
shadowninja55
d1f1c5ae51 v doc: add attribute tags to v doc -f html (#10778) 2021-07-13 08:27:20 +03:00
yuyi
581280e6fc parser: cleanup check_cross_variables() (#10754) 2021-07-12 12:10:42 +03:00
yuyi
938e9b61b5 parser: check undefined variables in assign_stmt (#10755) 2021-07-11 19:09:35 +03:00
yuyi
71e8237483 parser: check undefined variables in array inits (#10746) 2021-07-11 03:49:07 +03:00
Louis Schmieder
eb96ad11d9 checker: add pkgconfig to comptime if (#10692) 2021-07-09 18:17:04 +03:00