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

36 Commits

Author SHA1 Message Date
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
Alexander Medvednikov
9f4661391d v2: simplify the type system; an initial version of the V interpreter 2020-02-02 07:56:18 +01:00