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

12109 Commits

Author SHA1 Message Date
697eca5ddf tools: ensure git is installed, when doing vpm operations that require it 2022-01-01 15:40:19 +02:00
908296cdfb regex: improve errors for edge cases (#13008)
* code cleaning, added more clear errors for dots and ORs

* added failed match index for better find functions, updated tests

* added index in match failed, updated tests

* test cleaning

* test check
2022-01-01 09:21:27 +02:00
7b4ba66720 js: use JS.String instead of string in builtin javascript functions (#13004) 2022-01-01 09:17:08 +02:00
7622ff3f54 checker: check using const var as function (#13006) 2022-01-01 09:15:43 +02:00
6438512529 checker: add error for for mut var in string { (fix #12998) (#13000) 2021-12-31 09:54:06 +02:00
a0a1807e2b builtin: add charptr str() and change string format (#12973) 2021-12-30 23:34:24 +03:00
b10ff1e41b checker: infer generic interface type in i := Interface(Struct<u32>{}) 2021-12-30 21:24:52 +02:00
ae036b6146 checker: fix infinite recursion on generic interface cast 2021-12-30 19:28:42 +02:00
df8384b62e v.scanner: report the start of unfinished string literals too 2021-12-30 18:29:52 +02:00
93c40e696d all: add support for type MyEnumAlias = MyEnum 2021-12-30 13:42:06 +02:00
bf9f684c59 ast: improve support for type aliases, in TypeSymbol.xyz_info methods 2021-12-30 13:17:10 +02:00
7531f78f67 ast: remove const hack for global_table, use a proper global instead 2021-12-30 13:15:55 +02:00
d421f28de4 checker: minor cleanup in cast_expr() (#12995) 2021-12-29 21:48:23 +02:00
4114dd0815 v.builder: fix v -no-retry-compilation -cc tcc -usecache examples/tetris/ 2021-12-29 21:45:01 +02:00
99fdcd2e71 v.builder: fix v -cc tcc -no-retry-compilation build-module vlib/sync/stdatomic 2021-12-29 21:32:30 +02:00
ca5154747e cgen: fix v -usecache examples/news_fetcher.v on macos (.sort() compare_ functions duplication) 2021-12-29 20:15:51 +02:00
537760edcd ci: fix failing macos job (do not test -usecache for now there) 2021-12-29 18:29:08 +02:00
cb34309f6f cgen: fix chained ./v -usecache -o v cmd/v (and all other V programs that use maps) 2021-12-29 17:57:04 +02:00
cc577e1bfb parser: check variable redefinition error (#12992) 2021-12-29 13:44:08 +02:00
69c90ef50d hash.fnv1a: add generic fnv1a.sum64_struct/1 and fnv1a.sum32_struct/1 + tests 2021-12-29 12:03:24 +02:00
7c78bf9466 hash.fnv1a: add fnv1a.sum64_bytes and fnv1a.sum32_bytes, add doc comments and tests 2021-12-29 11:27:26 +02:00
9b8cf1ad37 markused: fix V compiler panics with -skip-unused, for code using generics 2021-12-29 09:48:13 +02:00
5607cfbd32 datatypes: add a Queue.last() method (#12987) 2021-12-29 08:01:47 +02:00
5e5529441c docs: document negative indexed slices, add example for a 'list comprehension' (#12986) 2021-12-28 22:29:11 +02:00
43fee6b3d5 all: fix registration of methods with the same name on different generic structs 2021-12-28 21:42:48 +02:00
730b2a9263 sync: move sync.atomic2 to sync.stdatomic, cleanup 2021-12-28 10:16:22 +02:00
c1711b8f05 checker: check string cast to number (fix #12982) (#12983) weekly.2021.52.1 2021-12-28 07:55:39 +02:00
6176ce9f03 all: c2v fixes 2021-12-28 08:00:56 +03:00
dadc965082 regex: implement negation groups, more flexibility for bsls, small fixes (#12981)
* removed memory allocations in cleaning during clear calls

* first test implementation of negative groups, more flexibility for bsls

* fixed bsls failed tests

* fmt

* added \n to regex tests
2021-12-27 22:18:48 +02:00
14648fa41e parser: reduce max_expr_level to 310 (due to more limited stack size on windows) 2021-12-27 20:21:58 +02:00
34e175a343 checker: minor cleanup of the fns classification (#12977) 2021-12-27 13:11:10 +02:00
a2eb90ee4e parser: prevent too deep recursions in p.check_undefined_variables 2021-12-27 12:30:17 +02:00
35418b8413 cgen: fix compile error on locking interface value (#12883) weekly.2021.52 2021-12-26 20:01:00 +02:00
c26e040d33 ci: bump retry count to 5 for tcp_test.v 2021-12-26 19:05:05 +02:00
2e68af22d3 cgen: improve auto_str error messages (#12972) 2021-12-26 18:32:15 +02:00
55d9c24063 ast: fix generic fn with multiple return (#12971) 2021-12-26 16:44:41 +02:00
8a10dbcf27 vlib: rename adt to datatypes 2021-12-26 16:01:36 +02:00
2210f89ea3 sokol: type alias all sapp structs (#12962) 2021-12-26 13:02:51 +02:00
04be2465dc cgen: check call argument on methods (#12965) 2021-12-26 11:53:56 +02:00
3b5de71e60 builtin: add none str() (fix #12964) (#12967) 2021-12-26 11:41:51 +02:00
03864e4ab8 checker: fix cast enum to alias (#12968) 2021-12-26 11:34:20 +02:00
10f63b3cd7 cgen: remove "main" from inline sum type str (#12963) 2021-12-25 23:58:45 +03:00
35282396ec all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
485b392cb3 adt: implement a binary MinHeap data structure (#12956) 2021-12-25 12:03:50 +02:00
8764a3a973 checker: check errors of cast to byte (#12961) 2021-12-25 11:34:15 +02:00
d0ad79cd8b checker: fix generic array builtin method call (#12957) 2021-12-24 14:42:23 +02:00
a83786d867 checker: minor cleanup in cast_expr() (#12954) 2021-12-24 11:38:27 +02:00
d69d2c600b adt: implement a doubly linked list (#12950) 2021-12-24 11:19:40 +02:00
c0dcd1a9a5 ast: fix reference of alias char type (#12951) 2021-12-24 11:11:20 +02:00
92bd55ded6 tests: fix typo in common.v (#12952) 2021-12-24 10:47:48 +02:00