Alexander Medvednikov
a76165828b
snake_case consts
2019-10-12 22:36:14 +03:00
Delyan Angelov
2b087dbf95
backtraces: add source line numbers too on linux
...
* Add source line numbers to backtraces on linux.
* Fix -g (broken after token caching).
* reset the #line directives after all the v code is compiled
* cleanup p.cgen.line setting inside p.next() .
* Support windows filepaths like "C:\Users\travis\build\vlang\v\v.exe.tmp.c" inside generated #line directives.
* Try to diagnose better windows-gcc failing.
* Revert "Try to diagnose better windows-gcc failing."
* implement and use cescaped_path/1 .
* Use cescaped_path/1 consistently throughout compiler/ .
2019-10-12 00:04:42 +03:00
Alexander Medvednikov
2411b8d1e7
module cache fixes; do not allow function names starting with _
2019-10-10 00:44:26 +03:00
Alexander Medvednikov
a9a73d9315
caching modules: almost there
2019-10-09 06:35:58 +03:00
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
Alexander Medvednikov
107e9107c8
solaris support
2019-09-27 00:23:27 +03:00
Alexander Medvednikov
55d09d23b4
compiler: rename cerror() to verror(); some small optimizations
2019-09-24 19:38:04 +03:00
joe-conigliaro
23c84516e2
compiler: error on unused imports
2019-09-23 13:42:20 +03:00
Delyan Angelov
a585c8c22c
compiler: compile thirdparty object files using module specific flags
2019-09-23 00:51:59 +03:00
Alexander Medvednikov
d1500511e6
"none" keyword for optionals + more memory fixes
2019-09-18 14:15:10 +03:00
Alexander Medvednikov
1397d532c6
compiler: check if mutable receivers are modified
2019-09-17 13:10:43 +03:00
hazohelet
3325775944
compiler: add android to supported platforms
2019-09-16 17:16:24 +03:00
Alexander Medvednikov
5cc81b91cb
JavaSript backend (early stage)
2019-09-15 03:49:57 +03:00
joe-conigliaro
8ac0a2b2dd
compiler: rework flags & support win path spaces + more
2019-09-06 15:12:04 +03:00
joe-conigliaro
d1210b9e9f
compiler/cgen: fix github username in error message
2019-09-04 19:49:53 +03:00
joe-conigliaro
8e25019634
simplify & optimize cgen sort_structs
2019-09-04 11:41:21 +03:00
joe-conigliaro
b4d033ff54
compiler: generalize mod dag & use for sorting structs also
2019-09-03 19:11:21 +03:00
Delyan Angelov
c9a39dfdb5
compiler: build tetris executable on windows with both msvc and mingw gcc
2019-09-03 16:09:43 +03:00
Alexander Medvednikov
0e2c41e0f9
replace *Foo with &Foo everywhere
2019-09-01 22:51:16 +03:00
Alexander Medvednikov
d078aa360b
parser: use map[string]Type instead of []Type
2019-09-01 22:30:49 +03:00
kawa-yoiko
4f0f99e663
parser: fix mutability with chained fields
2019-08-30 20:19:06 +03:00
Alexander Medvednikov
2fe20cd092
compiler: fix struct order bug
2019-08-29 23:46:12 +03:00
Delyan Angelov
83954acfd4
compiler: use cerror instead of panic.
2019-08-29 11:50:18 +03:00
Alexander Medvednikov
5b1700e52a
compiler: fix struct order bug
2019-08-28 21:19:34 +03:00
Delyan Angelov
d362f73af8
compiler: support passing -cc to specify the desired C compiler
2019-08-23 11:42:48 +03:00
Alexander Medvednikov
8a1324c141
os: make exec() return ?Result with exit code and output
2019-08-17 21:11:40 +03:00
Alexander Medvednikov
dc9cebe26c
orm fixes; glfw: remove C code
2019-08-16 09:10:03 +03:00
Alexander Medvednikov
8f8e0dfad7
V ORM
2019-08-10 13:35:29 +02:00
Julian Schurhammer
1864e92ff4
parser: disallow statements after a return, branch check $if, $else, switch, and loops correctly
2019-08-10 10:26:42 +02:00
Julian Schurhammer
28147c0930
os.exec: return ?string instead of string
2019-08-08 07:30:05 +02:00
Alexander Medvednikov
207bab5f79
generics, vweb, comptime codegen, etc
2019-07-29 18:24:48 +02:00
Emily Hudson
90bb48db5d
interactive debugging
2019-07-26 16:45:16 +02:00
d2verb
67c2932f34
parser: change cur_line, tmp_line only in main pass
2019-07-18 20:21:23 +02:00
Alexander Medvednikov
c35adbea91
vfmt fixes
2019-07-17 21:00:39 +02:00
Alexander Medvednikov
eb7aee5ae0
store temp C files in the same directory
2019-07-16 02:12:05 +02:00
Delyan Angelov
60ad97c4fb
fix hot code reloading for GUI example bounce on linux: works when compiled with 'v -live -sanitize bounce.v' .
...
It crashes with SIGSEGV, when -sanitize is not given.
Also thirdparty/glad/glad.o should be build with -fPIC .
2019-07-15 12:28:35 +02:00
aguspiza
d0e7d0070d
fix travis windows user home
2019-07-12 20:35:01 +02:00
joe-conigliaro
9a957ccc18
module aliasing & file import scope
2019-07-12 07:37:54 +02:00
Alexander Medvednikov
f834644db4
make gg work on Windows; prebuild glad and cJSON; new ft module
2019-07-12 04:50:14 +02:00
Alexander Medvednikov
26ef99293d
new enum syntax; update the compiler (`p.tok == .name`)
2019-07-10 02:02:38 +02:00
Alexander Medvednikov
dec0d961f5
os: clean up file functions, use optionals
2019-07-03 21:37:12 +02:00
Alexander Medvednikov
5936ab16c8
fix maps; use maps for storing functions; verify struct initialization
2019-07-01 02:24:39 +02:00
Alexander Medvednikov
61b51f6149
os.File clean up + socket.v (dial())
2019-06-30 20:28:50 +02:00
Alexander Medvednikov
c860bac7bf
don't allow calling private functions/methods
2019-06-26 13:15:47 +02:00
Alexander Medvednikov
06a4dfa290
replace silly `exit(reason string)` with `exit(code int)`
2019-06-23 10:14:37 +02:00
chai2010
978ec58fe3
all: add copyright
2019-06-23 09:22:49 +02:00
Alexander Medvednikov
d32e538073
V 0.0.12 open-source release
2019-06-22 20:20:28 +02:00