Commit Graph

5095 Commits (0c7bac4ba73dc27a8ad929461cc27e3666412c60)

Author SHA1 Message Date
ka-weihe 64173c792f
builtin: map: fix memory leak 2020-05-26 17:59:52 +02:00
Larpon 31ba64b409
scanner: add support for `@STRUCT` compile time substitution 2020-05-26 15:35:11 +02:00
Julia K 285e04393e
cgen: fix missing space, remove unnecessary comment 2020-05-26 16:22:28 +03:00
Delyan Angelov ca19cec9a5 v symlink: use @echo off for v.bat 2020-05-26 15:46:03 +03:00
pancake 8d10adf886
flag: fix a typo 2020-05-26 14:27:01 +02:00
Julia K 2b27072fac
compiler: new attributes, prelude customization 2020-05-26 14:12:18 +02:00
Emily Hudson 748b1d3381
cgen: use typ() for array type 2020-05-26 14:11:59 +02:00
Enzo Baldisserri 145b125155
websocket: make compile 2020-05-26 12:50:37 +02:00
Delyan Angelov e79adc0ba1 v symlink: use a .symlink/v.bat launcher to avoid global PATH polution 2020-05-26 13:34:01 +03:00
Delyan Angelov 7585483c69 v symlink: extract to cmd/tools/vsymlink.v , use setx on windows 2020-05-26 09:30:26 +03:00
Julia K b4eadb9030
cmd/v: reimplement -path flag 2020-05-26 03:17:52 +02:00
Alexander Medvednikov b1bbb17254 examples: remove glfw3.dll 2020-05-26 02:11:45 +02:00
Alexander Medvednikov b4d88ee4af checker: handle map.clone() 2020-05-26 02:09:26 +02:00
ka-weihe 8ea0c812a2
builtin: map.clone() 2020-05-26 01:52:06 +02:00
Alexander Medvednikov d4fac6add8 ci: disable -autofree self compilation for now 2020-05-26 01:48:11 +02:00
Alexander Medvednikov 0f92800921 cgen: string buffer fix 2020-05-26 00:04:13 +02:00
Delyan Angelov b0cfd3fa67
parser: reimplement [flag] enum support. Add p.vcodegen too 2020-05-26 00:00:48 +03:00
Delyan Angelov 5825e467b8 checker: fix appending an .enum_val to a struct field of []Enum 2020-05-25 21:48:43 +03:00
spaceface777 f8b237433f
jsgen: fix array push operator 2020-05-25 19:34:42 +03:00
Larpon 09dc2eed82
scanner: add support for '@MOD' 2020-05-25 19:33:41 +03:00
Emily Hudson bf92a8b80e
make.bat: use v.exe -cc msvc self when bootstrapping with msvc 2020-05-25 19:32:33 +03:00
Delyan Angelov 2eac2a5c0c make: do not pull tcc on macs 2020-05-25 15:08:21 +03:00
Alexander Medvednikov bc3e29e77b cgen: fix a bug with tmp strings/free 2020-05-25 11:01:21 +00:00
Alexander Medvednikov 53a10eb312 cgen: use STR_TMP with -autofree 2020-05-25 12:46:18 +02:00
pancake fe249cd1f8
pref: fix crash in 'v run' without arguments 2020-05-25 12:30:12 +02:00
Enzo Baldisserri d22609051a
checker: CallExpr with handled optional returns plain type 2020-05-25 11:32:14 +02:00
yuyi 30ca08aaa3
parser: fix self-referenced error 2020-05-25 11:31:04 +02:00
Ned Palacios 3aeaa24df6
repl: fix for-loop/if statement duplicate printing bug 2020-05-25 11:35:55 +03:00
Delyan Angelov 96808a0e2a cgen: generalize _vcleanup of array/string consts + valgrind with tcc 2020-05-25 10:24:19 +03:00
Delyan Angelov ae03aab03e cgen: autofree math.bits and strconv.ftoa constants 2020-05-25 09:53:30 +03:00
Delyan Angelov 6683f98eba cgen: add support for `-printfn _vcleanup` and `-printfn _vinit` 2020-05-25 09:47:00 +03:00
Alexander Medvednikov 656bc6b6c8 tests: valgrind: strings are freed now! 2020-05-25 06:23:50 +00:00
Alexander Medvednikov f41e2c0a4b string: make replace() clone for now; parser: comptime method 2020-05-25 08:17:36 +02:00
Alexander Medvednikov 1b36d7a037 cgen: handle c++ keyword 2020-05-25 05:46:58 +02:00
Alexander Medvednikov 99ce3d456b jsgen: handle ComptimeCall 2020-05-25 05:38:47 +02:00
Alexander Medvednikov 1ef8eacd6e checker/gen: more generics fixes; ComptimeCall 2020-05-25 05:32:36 +02:00
yuyi ec7863d174
cgen: fix array_init of struct error 2020-05-25 04:45:16 +02:00
spaceface777 4189190bb8
jsgen: start implementing remaining `expr`s and `stmt`s 2020-05-24 22:49:01 +02:00
Uwe Krüger fd4d28b7b6
tests: update for stricter type checks 2020-05-24 21:07:32 +02:00
penguindark 4e66c12557
strconv: minor fixes 2020-05-24 21:06:35 +02:00
Lukas Neubert 9315589f85
tutorials: switch to `mut f Foo` 2020-05-24 21:27:14 +03:00
Delyan Angelov a0f8005352 checker: support tests/run/ folder, checks many warns/errors/output 2020-05-24 21:13:09 +03:00
Delyan Angelov 23e8c8ecda checker: prevent infinite recursion on a:=b b:=a 2020-05-24 20:55:04 +03:00
yuyi 641fe5c864
checker: fix unresolved variables error on assignments 2020-05-24 20:33:53 +03:00
Delyan Angelov 1754ba19d8 live: cleanup live_test.v output, remove 1s delay 2020-05-24 18:38:43 +03:00
Delyan Angelov d16485c29e live: make live_test.v more robust 2020-05-24 17:45:53 +03:00
Uwe Krüger 7c4f2b535b
cgen: prepare any_in, any_float on v side 2020-05-24 15:26:43 +03:00
Ned Palacios ed7ed6262f
vpm: use current folder v.mod, if no args provided in `v install` 2020-05-24 15:25:29 +03:00
Delyan Angelov ddcb5f7da3 gen: fix autogenerated print methods for vargs 2020-05-24 15:05:19 +03:00
Delyan Angelov 465dc685cc repl: treat `=x` at the start of a new line, the same as `println(x)` 2020-05-24 14:16:38 +03:00