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

49 Commits

Author SHA1 Message Date
yuyi
f6844e9766
all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
Delyan Angelov
4718b8b45a
all: unify the displaying of compiler errors, using a common util.show_compiler_message/2 function. 2022-08-24 13:38:47 +03:00
Delyan Angelov
77495c8d03
all: support assert condition, extra_message, evaluating and showing extra_message on assert failure (#15322) 2022-08-03 01:14:01 +03:00
Delyan Angelov
5d8d11c989
ci: fix v cmd/tools/vast after ast.StructInit field renaming 2022-07-10 18:28:24 +03:00
Alexander Medvednikov
10051e005a parser, cgen: temporary prefix ++ for translated code 2022-06-18 13:30:47 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Alexander Medvednikov
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
Alexander Medvednikov
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
Alexander Medvednikov
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
yuyi
f9fc136c24
all: rename InterfaceDecl.ifaces to InterfaceDecl.embeds (#13475) 2022-02-15 11:17:39 +02:00
yuyi
3bd528b218
ast, checker, cgen: fix error for map sumtype value init (#13290) 2022-01-27 09:44:34 +02:00
yuyi
291a1ffd8d
token: rename Position to Pos, rename position() to pos() (#13279) 2022-01-26 12:36:28 +02:00
yuyi
ca1f675dba
ast, checker, cgen: implement if guard with multi return optional (#13273) 2022-01-25 14:36:33 +02:00
Delyan Angelov
86719c5de9
tools: update vast to latest V 2021-12-22 18:13:29 +02:00
Delyan Angelov
df7f2aa8a3
all: support [markused] tags for fns/consts/globals 2021-12-15 14:34:49 +02:00
yuyi
f407d6de02
ast, checker, cgen: fix generics multiple type comptime call (fix #12777) (#12806) 2021-12-12 19:42:40 +02:00
Thomas Mangin
0d0d7323bb
transformer: provide direct_memory_access to arrays when safe (#12724) 2021-12-11 21:55:46 +02:00
Delyan Angelov
6f5d952d8f
tools: implement v ast -t file.v (terse mode) (#12734) 2021-12-06 09:50:44 +02:00
lydiandy
3b7e7c9c46
tools: update vast to latest V (#12733) 2021-12-05 19:45:51 +02:00
yuyi
0cb4557a8d
ast, checker, cgen: fix nested struct embed method call (#12714) 2021-12-04 14:51:42 +02:00
yuyi
2d43fdb42a
ast, checker, cgen: fix nested struct embed error (fix #12659) (#12712) 2021-12-04 11:19:19 +03:00
yuyi
5a89c0a480
ast: change CompFor to ComptimeFor (#12482) 2021-11-17 08:29:43 +02:00
yuyi
c28041cecc
all: cleanup/rename all comp_ names to be comptime_ (#12467) 2021-11-15 15:47:29 +02:00
lydiandy
b963aff8e8
vast: update to latest V (#12387) 2021-11-04 19:57:51 +02:00
Delyan Angelov
eed94c727c
os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
Delyan Angelov
6c6bb08547
tools/vast: update vast to latest V 2021-10-11 15:52:06 +03:00
crthpl
85b58b03a3
cgen: parallelize (#10844) 2021-09-28 10:28:04 +03:00
JalonSolov
1688148828
flag: switch panics to optionals (#11515) 2021-09-16 19:25:05 +03:00
lydiandy
f87a638ddc
tools/vast: update vast to latest V (#11279) 2021-08-23 13:37:49 +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
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
crthpl
5089eb4a84
parser: fix pointer cast expressions hack (#10777) 2021-07-13 12:01:24 +03:00
Delyan Angelov
b09fa69cb3
v ast: use flag, add ability to combine -p and -w, implement --hide pos,name_pos,args,global_scope,scope 2021-07-12 14:53:14 +03:00
Delyan Angelov
0a66d8dc10
v ast: allow analyzing .vsh files too 2021-07-12 13:24:40 +03:00
Delyan Angelov
972542d6ee
checker: [noreturn] part 2 (cleanup) (#10667) 2021-07-05 05:05:37 +03:00
Lukas Neubert
806719786f
vast: print Position.last_line (#10600) 2021-06-28 16:23:34 +03:00
crthpl
500b48788e
parser, cgen: fix basic asm registers, fix numbered labels in addressing, support indirect branching (#10545) 2021-06-23 14:20:07 +03:00
zakuro
ce3681ee8f
v ast: eprintln and exit instead of panic on invalid file errors (#10526) 2021-06-20 13:12:08 +03:00
Delyan Angelov
9f6ddb4c21
v.fmt: add an independent Comment.is_inline flag. Use it for fixing [ .. //x ] => [ .. //x, ] 2021-06-18 15:52:31 +03:00
yuyi
2298063129
checker: fix nested if smartcast selector exprs (fix #10372 #10379) (#10502) 2021-06-18 14:49:15 +03:00
Delyan Angelov
39e7290416
v: support for [if expr], part 2 (old [if ident] is not yet deprecated) 2021-06-17 18:55:20 +03:00
Uwe Krüger
2ac39d9112
all: new function isreftype(T) to know if T contains pointers (#10438) 2021-06-13 06:26:13 +03:00
lydiandy
7c2265e00a
tools: vast fix and clean code (#10381) 2021-06-07 21:42:09 +03:00
zakuro
3e89b60784
vast: accept .vv file (#10305) 2021-06-02 16:10:15 +03:00
lydiandy
67518f946b
cmd/tools/vast: update DeferStmt (#10291) 2021-05-31 22:49:16 +03:00
lydiandy
43acda083a
cmd/tools/vast: add comments and cleanup code (#10246) 2021-05-29 17:05:05 +03:00
lydiandy
e09f0234ea
tools: add v ast file.v (#10236) 2021-05-28 19:54:44 +03:00