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

83 Commits

Author SHA1 Message Date
Alexander Medvednikov
ae2af4c36d parser: a small immutable field fix 2019-10-13 01:50:19 +03:00
Alexander Medvednikov
208f17a73a disable the snake_case const warning for now 2019-10-12 22:38:06 +03:00
Alexander Medvednikov
a76165828b snake_case consts 2019-10-12 22:36:14 +03:00
Simon Heuser
6860501994 parser: enable deferred stms for void and optional functions 2019-10-12 22:01:50 +03:00
Simon Heuser
85c05b6822 parser: disallow or{} block for non-optionals 2019-10-12 17:53:53 +03:00
joe-conigliaro
febd532c4a parser: allow multi returns in high order fns 2019-10-09 20:55:36 +03:00
Henrixounez
30e7cd8ed5 repl: handle print and one-line conditions 2019-10-06 17:21:10 +03:00
Delyan Angelov
ebc50432c7 compiler: initializing fixed arrays with [1,2,3] 2019-10-06 03:07:02 +03:00
Delyan Angelov
fce4199412 compiler: let methods return voidptr without a segfault 2019-10-03 01:28:24 +03:00
Alexander Medvednikov
5ba354fa2c if a := foo() { syntax for handling optionals 2019-10-01 22:57:38 +03:00
joe-conigliaro
f7c8e923c0 compiler/lang: add variadic function args support 2019-09-30 13:46:50 +03:00
Alexander Medvednikov
83022a2478 fix pushing to mutable array args 2019-09-29 17:02:28 +03:00
lutherwenxu
5c79c0e743 compiler: enforce reserved keywords replacement
* compiler: Enforce reserved keywords replacement on empty value initialization

* compiler: Add test for reserved keywords enforcement

A new struct has been introduced in the tests that contains all C reserved keywords that are not reserved in V. Some read and write are tested too.
2019-09-28 14:13:09 +03:00
Alexander Medvednikov
da43267e09 parser: cached tokens (second step) 2019-09-27 04:01:12 +03:00
Delyan Angelov
3fbfc5fbd4 repl: tests show difference (in color where available) 2019-09-25 22:00:56 +03:00
joe-conigliaro
d4bae356ba compiler/vlib: add error for no new vars in loop ("_,_") & remove "." from errors 2019-09-25 17:59:50 +03:00
Alexander Medvednikov
d2d75f3824 parser: do not allow "int?", only "?int" 2019-09-23 23:17:06 +03:00
joe-conigliaro
23e30962b9 compiler: multiple returns - add test & fix use with array/map 2019-09-23 13:39:35 +03:00
Alexander Medvednikov
6a788bb364 testing: do not allow fn main in tests and make sure there is at least one test fn 2019-09-22 09:49:33 +03:00
vitalyster
f1bb25bfaf windows: Unicode input in REPL 2019-09-20 17:03:13 +03:00
Alexander Medvednikov
13e4c79f58 table: use optional in find_method() 2019-09-19 04:56:22 +03:00
Alexander Medvednikov
d1500511e6 "none" keyword for optionals + more memory fixes 2019-09-18 14:15:10 +03:00
Delyan Angelov
a45895a3af new benchmark module + make the tests use it 2019-09-16 17:29:06 +03:00
Delyan Angelov
854de4e7e0 repl: add more stats and tests; compiler: tcc fixes 2019-09-16 00:41:12 +03:00
Delyan Angelov
35f927e64e repl: add some timing statistics when running REPL test files 2019-09-15 18:08:16 +03:00
joe-conigliaro
f077fbd32d vlib: change [0;n] to [0].repeat(n) 2019-09-15 12:26:05 +03:00
Delyan Angelov
ec61821bf7 compiler: support explicit runrepl argument, so that the v repl can be launched with options like -debug and so on. 2019-09-04 19:50:51 +03:00
Joe Conigliaro
dd670fb4a3 workaround msvc 0 struct field bug 2019-09-04 19:47:13 +03:00
Joe Conigliaro
afde6f582d workaround for fn_test on windows 2019-09-04 18:24:41 +03:00
joe-conigliaro
6921c15b7b compiler: fix repl chained_fields test (windows) 2019-09-03 18:42:40 +03:00
Alexander Medvednikov
1c6d51f271 remove u8 and i32 from tests and examples 2019-09-02 15:02:25 +03:00
Alexander Medvednikov
bfa6505636 compiler: replace &Type with Type 2019-09-01 14:05:03 +03:00
kawa-yoiko
4f0f99e663 parser: fix mutability with chained fields 2019-08-30 20:19:06 +03:00
kawa-yoiko
6d35f68242 parser: restore outer variable in index exprs 2019-08-30 12:16:39 +03:00
Shiqing
519028e263 Fix incorrect string open/close check in REPL 2019-08-29 21:40:49 +03:00
Delyan Angelov
4f62e8235f repl: add a test for naked strings. 2019-08-29 12:30:33 +03:00
joe-conigliaro
02fc7e14cd make trim use cutset like trim_right/trim_left 2019-08-27 22:53:32 +03:00
Danil-Lapirow
7edcbeca1a parser: match expression + match fixes 2019-08-27 00:39:11 +03:00
Delyan Angelov
aa438c7c3f os: fix exec() and get_raw_line(); fix Windows tests and examples 2019-08-26 13:51:48 +03:00
Delyan Angelov
77b31de117 compiler: produce errors in C "filepath:line:column:" format 2019-08-22 14:15:11 +03:00
Emily Hudson
151686501d compiler: fix MSVC flag parsing 2019-08-20 16:32:15 +03:00
Delyan Angelov
41efe545f2 repl_test: remove dependance on echo, use stdin redirection instead. 2019-08-18 23:02:32 +03:00
Henrixounez
e1d2c83ff6 repl: functions and conditional blocks support 2019-08-18 22:50:38 +03:00
Henrixounez
14f13ff55a tests: v implementation of repl tests 2019-08-18 19:26:55 +03:00
Henrixounez
aae063b9ad repl: dont save line if last compilation errored 2019-08-18 19:25:46 +03:00
Delyan Angelov
bbc5c14d99 repl: fix compiler/tests/repl/error.repl test case. 2019-08-18 17:24:02 +03:00
Marco Böttcher
d6d17fe3f2 scanner: string interpolation with $var at the end 2019-08-16 17:06:27 +03:00
Marco Böttcher
87216cff63 compiler: '\$' escape 2019-08-15 12:41:23 +03:00
Henrixounez
2ba1edaa80 repl: default printing fix and test 2019-08-12 16:19:56 +03:00
Alexander Medvednikov
3c6a11eb0b fix mut_test.v 2019-08-11 22:45:21 +03:00