Delyan Angelov
53c64abdeb
compiler: make compiler an ordinary vlib/compiler module
...
* Move compiler/ under vlib/compiler/ .
* Add a minimal compiler/main.v driver program.
* Cleanup compiler/main.v .
* Make most compiler tests pass again.
* Apply the fix by @joe-conigliaro , so that the rest of the compiler tests are fixed too.
* Thanks to @avitkauskas, now the vlib/vcompiler/tests/str_gen_test.v test does not need to be special cased anymore.
* Reapply @joe-conigliaro fix for vgen.
2019-10-13 16:37:43 +03:00
Anders Busch
c620da9089
compiler: rename Tok/Token to Token/TokenKind
2019-10-09 01:05:34 +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
a94c1556ce
array: remove temporary repeat2()
2019-09-19 05:22:24 +03:00
Alexander Medvednikov
d1500511e6
"none" keyword for optionals + more memory fixes
2019-09-18 14:15:10 +03:00
Alexander Medvednikov
5cc81b91cb
JavaSript backend (early stage)
2019-09-15 03:49:57 +03:00
Alexander Medvednikov
fe2d2bd2a3
fmt: remove trailing spaces
2019-08-17 22:21:43 +03:00
Alexander Medvednikov
94b900bd0a
map: allow array values
2019-08-16 23:28:47 +03:00
Alexander Medvednikov
8f8e0dfad7
V ORM
2019-08-10 13:35:29 +02:00
Alexander Medvednikov
c28a490c17
@ for escaping keywords
2019-07-24 02:28:29 +02:00
d2verb
88758082d2
scanner.v: refactoring
2019-07-24 00:06:48 +02:00
Alexander Medvednikov
c35adbea91
vfmt fixes
2019-07-17 21:00:39 +02:00
Alexander Medvednikov
a9463a180d
new match statement
2019-07-17 02:41:08 +02:00
Alexander Medvednikov
0a4a9a35c3
.key_type
2019-07-16 12:17:17 +02:00
Alexander Medvednikov
17c6ba04a2
defer statement
2019-07-15 22:13:12 +02:00
Alexander Medvednikov
f7dbbf5810
re-write map.v and update the compiler
2019-07-14 22:08:17 +02:00
joe-conigliaro
298ca8676f
Change import syntax to "import as alias"
2019-07-13 12:15:16 +02:00
Alexander Medvednikov
26ef99293d
new enum syntax; update the compiler (p.tok == .name
)
2019-07-10 02:02:38 +02:00
Ivan Sharavuev
290e1df893
Move token string length from magic number to constant.
2019-07-03 18:58:50 +02:00
Zaoqi
437b32fe78
fmt: id []typ
2019-06-30 13:06:45 +02:00
Alexander Medvednikov
fa51b24a60
remove @ token
2019-06-26 17:45:54 +02:00
Alexander Medvednikov
c860bac7bf
don't allow calling private functions/methods
2019-06-26 13:15:47 +02:00
Alexander Medvednikov
f26e65a943
remove old float
type entirely
2019-06-25 22:10:22 +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