v/compiler
Delyan Angelov a4cbe78d97 compiler: streamline main function handling
* compiler: streamline C main function generation

* fix most tests

* compiler: fix for 'go update()' in graph.v . More precise parser error messages.

* Fix temporarily examples/hot_reload/message.v by using os inside it (os.clear).

* Make graph.v easier to quickly modify by defining y outside the loop.

* Fix failure of /v/nv/compiler/tests/defer_test.v when run with 'v -g' (#line directive was not on its own line, but right after } ).

* Do not pass the os.args to tests, even if the tests import os (they are more stable when run in a controlled environment).

* fix declared and not used in the js backend.

* fix js main => main__main too.
2019-09-28 20:42:29 +03:00
..
tests compiler: enforce reserved keywords replacement 2019-09-28 14:13:09 +03:00
cc.v solaris: add -lm 2019-09-27 00:53:57 +03:00
cflags.v compiler: enable FreeBSD's cflags for freetype & glfw 2019-09-28 14:18:04 +03:00
cgen.v compiler: streamline main function handling 2019-09-28 20:42:29 +03:00
cheaders.v windows: Unicode and IPv6 http/sockets 2019-09-26 22:54:15 +03:00
comptime.v compiler: make vgen use strings.Builder & allow parser creation from string 2019-09-27 14:02:01 +03:00
depgraph.v bring back automatic array_free() 2019-09-08 14:50:18 +03:00
fn.v compiler: streamline main function handling 2019-09-28 20:42:29 +03:00
gen_c.v compiler: blank identifier for loops. dont declare any variables 2019-09-28 19:53:56 +03:00
gen_js.v compiler: streamline main function handling 2019-09-28 20:42:29 +03:00
jsgen.v remove u8 and i32 aliases 2019-09-01 22:37:22 +03:00
live.v compiler: streamline main function handling 2019-09-28 20:42:29 +03:00
main.v compiler: streamline main function handling 2019-09-28 20:42:29 +03:00
modules.v compiler: rename cerror() to verror(); some small optimizations 2019-09-24 19:38:04 +03:00
msvc.v compiler/vlib: add error for no new vars in loop ("_,_") & remove "." from errors 2019-09-25 17:59:50 +03:00
parser.v compiler: streamline main function handling 2019-09-28 20:42:29 +03:00
parser2.v parser: do not allow "int?", only "?int" 2019-09-23 23:17:06 +03:00
query.v compiler: rename cerror() to verror(); some small optimizations 2019-09-24 19:38:04 +03:00
repl.v compiler: rename cerror() to verror(); some small optimizations 2019-09-24 19:38:04 +03:00
scanner.v compiler: streamline main function handling 2019-09-28 20:42:29 +03:00
table.v compiler: streamline main function handling 2019-09-28 20:42:29 +03:00
token.v array: remove temporary repeat2() 2019-09-19 05:22:24 +03:00
vfmt.v bring back "parser: cache tokens (first step)" 2019-09-27 04:00:48 +03:00
vhelp.v fix vhelp.v 2019-09-15 14:15:31 +03:00