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

51 Commits

Author SHA1 Message Date
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
shove
26d643fc5d
all: rollback to old interpolation (step 3) (#16380) 2022-11-10 15:05:34 +03:00
shove
a199a9afab
all: rollback to old interpolation (step 2) (#16373) 2022-11-09 17:37:27 +03:00
yuyi
fd4045931a
scanner: fix the new string interpolation - println('{s == 'hello'}') (fix #16318) (#16319)
* scanner: fix the new string interpolation - println('{s == 'hello'}')

* fix vlib/v/eval/gen/infix_gen.v
2022-11-03 23:06:11 +02:00
yuyi
64cbadc6f1
scanner: fix new string interpolation println('{a}{b}{c}{d}') (#16258) 2022-10-30 20:18:31 +02:00
StunxFS
ef1696b3e1
v.util: add path_styled_for_error_messages/1 (#16219) 2022-10-28 11:27:00 +03:00
StunxFS
219079e3a6
v.eval: consistency in commit hash shown on panic (#16227) 2022-10-28 06:47:50 +03:00
Alexander Medvednikov
18c7da9a5e all: new string interpolation "hello {name}!" 2022-10-27 11:01:01 +03:00
StunxFS
e6fad82b87
v.eval: support unsafe expr (#16224) 2022-10-27 10:38:57 +03:00
shove
fef4dd94e9
ast, checker, cgen: enable unsafe { nil } with reference to interface fields in structs (fix #16198) (#16199) 2022-10-26 09:39:23 +03:00
Delyan Angelov
d4e89de8fb
ci: fix v -cstrict -cc gcc vlib/v/gen/native/macho_test.v 2022-10-10 13:28:18 +03:00
Delyan Angelov
c655847dfb
native: fix notices when building cmd/tools/builders/native_builder.v 2022-10-02 22:48:06 +03:00
yuyi
41dbd12bc4
tests: make error handling the same as the main function (#15825) 2022-09-21 19:45:43 +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
StunxFS
9376009c39
v.eval: support panic function (#14972) 2022-07-07 20:00:59 +03:00
Delyan Angelov
de77114593
eval: support assignment operators like +=, make for a in 0..10 { more robust 2022-07-07 15:13:22 +03:00
zakuro
a46bcf3571
all: v.ast.byte_type -> v.ast.u8_type (#14964) 2022-07-06 13:32:30 +03:00
yuyi
fab5802deb
all: fix latest ci errors (#14957) 2022-07-06 07:02:16 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Delyan Angelov
4538efd8f4
eval: small cleanup in the handling of $if platform { 2022-04-28 13:15:09 +03:00
Delyan Angelov
e0ed8f8278
eval: make the interpreter backtrace more efficient and informative. 2022-04-28 12:31:30 +03:00
Delyan Angelov
f72297c331
eval: add support for C.read/3, C.malloc/1, $if openbsd { 2022-04-28 11:30:36 +03:00
Delyan Angelov
d35d67c2bd
eval: enable v interpret examples/hanoi.v 2022-04-25 12:20:37 +03:00
Alexander Medvednikov
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
Alexander Medvednikov
c3ad4e2069 encoding.base64: use u8 2022-04-15 15:10:34 +03:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Vincenzo Palazzo
7f29418c63
strconv: change atof64 to return an error, if the parsed value is not a valid number (#13424) 2022-02-10 13:27:32 +02:00
Delyan Angelov
359b674cff
ci: fix more failing tests 2022-01-22 23:18:09 +02:00
Delyan Angelov
fa6f7d4c83
os: add os.quoted_path/1, use it consistently for running V itself 2022-01-22 21:13:28 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
pancake
4b55800ffd
v.eval: add tests and fix runtime cast crash (#13019) 2022-01-03 18:30:42 +02:00
Delyan Angelov
41078bc438
v.eval: fix hardcoded math ops in infix_gen.v, add interpret_test.v 2022-01-02 10:33:21 +02:00
Delyan Angelov
1521d08e84
eval: ignore ast.Module (fixes v interpret file.v regression after 07cf6d9) 2022-01-02 10:09:50 +02:00
Delyan Angelov
9278d4ec19
docs: fix a typo 2022-01-02 09:18:24 +02:00
yuyi
cd0b581445
ast: rename 'table.get_type_symbol()' to 'table.sym()' and more related calls (#12898) 2021-12-19 18:25:18 +02:00
Delyan Angelov
79de408ef0
parser,checker: support [generated] module xyz (turns off notices). Use it for infix.v. 2021-12-12 00:58:38 +02:00
Delyan Angelov
adf353702e
v.eval: show sumtype or interface casts return void currently only with -v 2021-12-11 23:45:54 +02:00
crthpl
2fbf7fea75
all: initial interpreter code (#12605) 2021-12-08 11:09:10 +03:00
Alexander Medvednikov
7385f8e56b all: a massive merge of ast and table modules 2021-04-02 01:57:09 +03:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Daniel Däschle
7d6f97259f
all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
Daniel Däschle
aa6303f0b2
all: use the new types with old syntax (#6922) 2020-11-24 13:58:29 +01:00
Enzo
b083f4014b
fmt: fix multiple things and format most of the compiler (#6631)
Format expressions inside string interpolation like the rest (it used to be a+b instead of a + b, not too sure why)
Fix formatting some match branches when there were only one statement inside (it was inlined)
Fix parsing and formatting some comments edge case on struct field init. You should check out this test because the result is a bit different from before. I personally find it more logical but I would understand if the former format was to stay
Fix formatting of void-returning function signature
2020-10-15 22:12:59 +02:00
Enzo Baldisserri
fb54a2635c
fmt: lots of fixes 2020-04-25 17:49:16 +02:00
yuyi
bb5ed66bb4
eval: fix new_checker call 2020-04-04 02:03:41 +02:00
Joe Conigliaro
f7a93a69f6 v: fix/gen multi return/assign + merge VarDecl & AssignStmt 2020-03-10 22:01:37 +11:00
Alexander Medvednikov
9846fecd84 eval: fix test 2020-03-07 00:42:52 +01:00
Alexander Medvednikov
7f5a15372f os: fix get_raw_line() + minor v2 fixes 2020-02-28 14:05:20 +01:00
joe-conigliaro
7f709c3285
update copyright years 2020-02-03 05:00:36 +01:00