1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/compiler
Delyan Angelov 8b8cd13929 parser: add some infrastructure for more specific errors
* compiler: change s.line_nr in just one place, so that s.last_nl_pos will be updated in tandem too.

* Cleanup spurious spaces.

* Store ScannerPos info inside the cached tokens.

Use the stored information when errors are encountered.

* Fix #2079 ( cannot use type...in assignment ).

* do not store scannerpos per each token, instead rescan the source once on error to get the position.

* compiler: implement highlighting for errors. Use only line/col info stored in the cached tokens.

* fixing building on windows

* Split can_show_color to _nix and _win files.
2019-09-29 04:33:23 +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 parser: add some infrastructure for more specific errors 2019-09-29 04:33:23 +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 struct capitalization: fix the rest of tests 2019-09-28 22:26:44 +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
parser2.v parser: do not allow "int?", only "?int" 2019-09-23 23:17:06 +03:00
parser.v parser: add some infrastructure for more specific errors 2019-09-29 04:33:23 +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 parser: add some infrastructure for more specific errors 2019-09-29 04:33:23 +03:00
table.v parser: add some infrastructure for more specific errors 2019-09-29 04:33:23 +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