joe-conigliaro
|
478c48cd6f
|
Merge branch 'master' of https://github.com/vlang/v
|
2020-02-19 21:45:45 +11:00 |
|
joe-conigliaro
|
69634c60b3
|
v2: start to fix index expr for map/array/fixed array
|
2020-02-19 21:45:06 +11:00 |
|
joe-conigliaro
|
42399d24d9
|
v2: fix index expr for fixed array & map
|
2020-02-19 21:39:30 +11:00 |
|
Alexander Medvednikov
|
082acfad49
|
v2: fix more ast positions
|
2020-02-19 11:31:33 +01:00 |
|
Alexander Medvednikov
|
bc11419ff9
|
v2: fix for position and check
|
2020-02-19 11:06:36 +01:00 |
|
joe-conigliaro
|
042bce4b6c
|
v2: dont preifx C fns with module & add todo
|
2020-02-19 18:08:08 +11:00 |
|
joe-conigliaro
|
83bfd0805e
|
v2: prefix functions with module, except in main & builtin
|
2020-02-19 17:16:38 +11:00 |
|
joe-conigliaro
|
9b271d1728
|
v2: remove left over testing printlns
|
2020-02-19 16:06:16 +11:00 |
|
joe-conigliaro
|
f91bded9b3
|
v2: add missing table/modules.v
|
2020-02-19 13:11:55 +11:00 |
|
joe-conigliaro
|
b62a90a212
|
v2: module/import fixes, use parent_idx instead of parent ptr to remove need to preallocate types array
|
2020-02-19 13:09:35 +11:00 |
|
Alexey
|
200d3e6446
|
vfmt: process imports and module name
|
2020-02-18 22:35:14 +01:00 |
|
Alexander Medvednikov
|
19520ccf4e
|
v2: for in checker
|
2020-02-18 21:59:42 +01:00 |
|
Alexey
|
39c4842bf9
|
vfmt2: skip arg type if possible
|
2020-02-18 21:02:43 +01:00 |
|
Alexander Medvednikov
|
31c1483b9d
|
vfmt2: fn args, comments
|
2020-02-18 20:20:15 +01:00 |
|
Alexander Medvednikov
|
480af3f381
|
v2: checker fixes
|
2020-02-18 20:06:01 +01:00 |
|
Delyan Angelov
|
290feaac51
|
vfmt2: allow running the new vfmt with 'v fmt -2'
|
2020-02-18 20:00:06 +01:00 |
|
Delyan Angelov
|
b991ca4ebc
|
vfmt2: more convenient way to test multiple files for correct formatting
|
2020-02-18 17:54:14 +01:00 |
|
Alexander Medvednikov
|
4e9bfa95ec
|
v2: the new parser can now parse the entire V compiler
|
2020-02-18 17:45:59 +01:00 |
|
joe-conigliaro
|
67756c53dc
|
v2: more cleanup (#3765)
|
2020-02-18 18:58:20 +11:00 |
|
Alexander Medvednikov
|
ed01ab763c
|
v2/vfmt2: more fixes
|
2020-02-18 03:28:41 +01:00 |
|
joe-conigliaro
|
ecb0af36b3
|
v2: cleanup old & unused code, add new simple tmp vars in cgen
|
2020-02-18 03:17:21 +01:00 |
|
Alexander Medvednikov
|
2ea2fed8a5
|
vfmt: minor clean up
|
2020-02-17 22:52:48 +01:00 |
|
Alexander Medvednikov
|
59beec8fae
|
new vfmt using the new parser
|
2020-02-17 22:50:11 +01:00 |
|
yuyi
|
6849a4e770
|
filepath: path separator (#3756)
|
2020-02-17 20:31:23 +01:00 |
|
Alexander Medvednikov
|
53f8ae6517
|
fix prod build
|
2020-02-17 14:30:01 +01:00 |
|
Alexander Medvednikov
|
1dd6491a2f
|
v2: more parser fixes
|
2020-02-17 14:15:49 +01:00 |
|
joe-conigliaro
|
d7f74ecf52
|
v2: move more type handling to checker + some clean up
|
2020-02-17 12:25:18 +01:00 |
|
penguindark
|
80861f2219
|
scanner: exponent without sign
|
2020-02-17 02:35:01 +01:00 |
|
joe-conigliaro
|
1007dd8f23
|
v2: update parse type not to prefix builtin types with module
|
2020-02-16 16:16:19 +01:00 |
|
Alexander Medvednikov
|
9eeb3dfe7e
|
v2: temporary string cast fix
|
2020-02-16 12:38:15 +01:00 |
|
Alexander Medvednikov
|
6d8ad58515
|
v2: mod.Type
|
2020-02-16 12:31:44 +01:00 |
|
joe-conigliaro
|
dc90f4f4a6
|
v2: remove unresolved types; handle types in checker; add ast.scope
|
2020-02-15 13:37:48 +01:00 |
|
Alexander Medvednikov
|
8dd905a14d
|
v2: more parser fixes
|
2020-02-13 14:08:19 +01:00 |
|
Alexey
|
8d76f7d195
|
v2: remove redundant EOL normalization in cgen test
|
2020-02-12 23:19:17 +01:00 |
|
Alexander Medvednikov
|
9d46fb9f90
|
v2: [] expr for known arrays; p.expected_type
|
2020-02-12 17:39:51 +01:00 |
|
Alexander Medvednikov
|
d9cf98f772
|
v2: imports
|
2020-02-12 01:16:38 +01:00 |
|
Alexander Medvednikov
|
17212f816c
|
v2: high order functions
|
2020-02-11 13:21:41 +01:00 |
|
Alexander Medvednikov
|
2838d12227
|
v2: fn_args()
|
2020-02-11 13:03:14 +01:00 |
|
joe-conigliaro
|
d25a0e30dc
|
v2: make index_expr return array array element type
|
2020-02-11 12:59:40 +01:00 |
|
Alexander Medvednikov
|
9610821884
|
v2: defer; match a,b; if x :=
|
2020-02-11 10:26:46 +01:00 |
|
joe-conigliaro
|
f7b80c3c62
|
v2: fix fixed array parsing
|
2020-02-11 14:45:33 +11:00 |
|
Alexander Medvednikov
|
2d7c80bbc3
|
v2: match sum type; { x | }
|
2020-02-11 00:07:01 +01:00 |
|
Alexander Medvednikov
|
a21e3d77e9
|
fix prod build
|
2020-02-10 23:47:42 +01:00 |
|
Alexander Medvednikov
|
747f6829ab
|
v2: enum decl; type decl; [start..end] fix; %=
|
2020-02-10 23:19:50 +01:00 |
|
Alexander Medvednikov
|
26cfaa150e
|
v2: match expr; enum val; string formatting
|
2020-02-10 20:33:46 +01:00 |
|
Alexander Medvednikov
|
d5f90ef64b
|
v2: handle unresolved consts
|
2020-02-10 18:43:25 +01:00 |
|
joe-conigliaro
|
bf5ed5e451
|
v2: fix array index, for loop, add cast expr & other minor fixes
|
2020-02-10 14:43:17 +01:00 |
|
Alexander Medvednikov
|
c9f619dc72
|
v2: parse filter()
|
2020-02-10 14:42:57 +01:00 |
|
Alexander Medvednikov
|
3f6ccd3120
|
v2: minor fixes
|
2020-02-10 13:58:24 +01:00 |
|
joe-conigliaro
|
e274c5c485
|
v2: type sys - store type idx/ptr in int & add helpers
|
2020-02-10 08:32:08 +01:00 |
|
lutherwenxu
|
9332a83ce6
|
move v.v to cmd/v
|
2020-02-09 10:08:04 +01:00 |
|
joe-conigliaro
|
a2d2586331
|
v2: map / string / builtin type fixes
|
2020-02-08 16:59:57 +01:00 |
|
joe-conigliaro
|
e01c76c895
|
v2: fix type resolving
|
2020-02-08 12:14:53 +01:00 |
|
joe-conigliaro
|
9e9bdc32ea
|
v2: lots of small fixes parent method/field resolution
|
2020-02-08 09:50:12 +01:00 |
|
Alexander Medvednikov
|
d66bc24e7f
|
remove as casts for basic types
|
2020-02-07 22:10:48 +01:00 |
|
Alexander Medvednikov
|
f782388148
|
v2: minor fixes
|
2020-02-07 21:29:28 +01:00 |
|
joe-conigliaro
|
35bef514b0
|
v2: checker & unresolved fixes & small updates
|
2020-02-07 18:46:42 +01:00 |
|
Alexander Medvednikov
|
9034b1fd08
|
v2: match cgen; use as for casting
|
2020-02-07 14:50:52 +01:00 |
|
Alexander Medvednikov
|
f241945d70
|
v2: as cast
|
2020-02-07 09:19:45 +01:00 |
|
Alexander Medvednikov
|
bb60b3081f
|
v2: parse builtin successfully
|
2020-02-07 07:34:18 +01:00 |
|
joe-conigliaro
|
67a13fc916
|
v2: start impl multi assign
|
2020-02-06 17:38:02 +01:00 |
|
joe-conigliaro
|
d9e92a08cb
|
v2: use pointer to table.type, fix unresolved array/map sub-types
|
2020-02-06 13:57:35 +01:00 |
|
Alexander Medvednikov
|
2b433cdf64
|
v2: match, <<=, >>=, |=, ~, unsafe, map init
|
2020-02-05 10:00:14 +01:00 |
|
Alexander Medvednikov
|
f1a0c2f1af
|
v2: parse optionals
|
2020-02-04 20:22:00 +01:00 |
|
Alexander Medvednikov
|
ac5c4e3203
|
fix prod build
|
2020-02-04 17:48:15 +01:00 |
|
Alexander Medvednikov
|
80daaff874
|
v2: scopes, or, in, hex
|
2020-02-04 17:44:39 +01:00 |
|
Alexander Medvednikov
|
9b60a50d07
|
v2: maps, <<, >>, method calls
|
2020-02-04 12:50:58 +01:00 |
|
joe-conigliaro
|
85e4e4cb40
|
v2: resolve unresolved call expression types & add test
|
2020-02-04 12:03:12 +01:00 |
|
Alexander Medvednikov
|
83f0c228e9
|
v2: parse builtin.v, cfns.v float.v
|
2020-02-04 09:54:15 +01:00 |
|
Alexander Medvednikov
|
432ee93916
|
v2: break, continue, for in fixes, fixed size array, |
|
2020-02-04 08:29:50 +01:00 |
|
Alexander Medvednikov
|
c7f07cd0b6
|
v2: postfix_expr() checker
|
2020-02-04 07:37:41 +01:00 |
|
joe-conigliaro
|
21b6dace8f
|
v2: remove duplication & slight cleanup. share prefs with v1
|
2020-02-03 12:09:17 +01:00 |
|
Alexander Medvednikov
|
f1f8a2e4dd
|
fix prod build
|
2020-02-03 12:06:25 +01:00 |
|
Alexander Medvednikov
|
64bfae0a0e
|
2
|
2020-02-03 11:54:41 +01:00 |
|
Alexander Medvednikov
|
54605823f9
|
rem1
|
2020-02-03 11:45:25 +01:00 |
|
Alexander Medvednikov
|
01f45f063e
|
cgen: remove the checker
|
2020-02-03 11:36:03 +01:00 |
|
Alexander Medvednikov
|
40fd918b58
|
v2: cgen: remove type resolving for VarDecl
|
2020-02-03 11:32:00 +01:00 |
|
Alexander Medvednikov
|
6489b48c9c
|
v2: clean up IndexExpr type check
|
2020-02-03 11:29:50 +01:00 |
|
Alexander Medvednikov
|
e5f5117a7e
|
fix prod build
|
2020-02-03 11:17:12 +01:00 |
|
Alexander Medvednikov
|
60a4f668b7
|
v2: fix FnDecl ref bug
|
2020-02-03 11:13:36 +01:00 |
|
Alexander Medvednikov
|
2af3c0ede4
|
hmm
|
2020-02-03 10:58:15 +01:00 |
|
Alexander Medvednikov
|
1ac7a95f9b
|
fix array_test.v
|
2020-02-03 10:27:06 +01:00 |
|
Alexander Medvednikov
|
50b704c5dd
|
sum type: mut
|
2020-02-03 09:25:26 +01:00 |
|
Alexander Medvednikov
|
34e9eb32bb
|
sum types: allow modification in match
|
2020-02-03 09:11:10 +01:00 |
|
Alexander Medvednikov
|
d918903252
|
v2: move index expr type check
|
2020-02-03 07:45:09 +01:00 |
|
joe-conigliaro
|
2d5c70832c
|
v2: initial module support
|
2020-02-03 07:31:54 +01:00 |
|
Alexander Medvednikov
|
d87cb3f672
|
v2: consts, $if, attributes, globals, if/for type check, prefs
|
2020-02-03 07:03:32 +01:00 |
|
joe-conigliaro
|
7f709c3285
|
update copyright years
|
2020-02-03 05:00:36 +01:00 |
|
Alexander Medvednikov
|
71653273f6
|
v2: range, *, function object
|
2020-02-02 14:32:12 +01:00 |
|
Alexander Medvednikov
|
377d8dc42c
|
v2: parser_test: run all tests
|
2020-02-02 08:06:21 +01:00 |
|
Alexander Medvednikov
|
9f4661391d
|
v2: simplify the type system; an initial version of the V interpreter
|
2020-02-02 07:56:18 +01:00 |
|
Shun Sakai
|
c8c43a2475
|
update copyright year
|
2020-01-23 21:04:46 +01:00 |
|
joe-conigliaro
|
543e8dc78a
|
v2: fix bug in scanner, introduced in da9b639 (_ in num literals)
|
2020-01-23 21:47:13 +11:00 |
|
penguindark
|
da9b6394e8
|
0bxxxx binary literal support; _ in literals (1_000_000)
|
2020-01-23 03:28:25 +01:00 |
|
Alexander Medvednikov
|
0502a54a36
|
new gg/freetype modules with sokol/fontstash backends
|
2020-01-22 20:54:36 +01:00 |
|
joe-conigliaro
|
3a8b437b8d
|
v2: move array_init to checker
|
2020-01-19 13:52:34 +01:00 |
|
joe-conigliaro
|
09d1eb7c55
|
v2: type checker + lots of other changes
|
2020-01-18 23:26:14 +01:00 |
|
Alexander Medvednikov
|
b6c0b22742
|
interfaces fixes; freetype.text_width(); gl and stbi fixes
|
2020-01-12 16:11:28 +01:00 |
|
Delyan Angelov
|
7bf49aba54
|
vv: make warns/errors usable in emacs/vim
|
2020-01-09 14:08:33 +01:00 |
|
Alexander Medvednikov
|
29564ed63d
|
interface fix
|
2020-01-09 01:40:10 +01:00 |
|
joe-conigliaro
|
38e5f0d1cf
|
v: initial type work for methods / struct fields
|
2020-01-08 17:14:42 +01:00 |
|
Alexander Medvednikov
|
3c0fca9258
|
register methods (wip)
|
2020-01-08 10:19:18 +01:00 |
|
Alexander Medvednikov
|
9861b24bc3
|
struct field check + enable v2 again
|
2020-01-07 16:09:20 +01:00 |
|
joe-conigliaro
|
2ab7b40f2f
|
v: clean up enum vals; make array_init return array
|
2020-01-07 15:46:57 +01:00 |
|
Alexander Medvednikov
|
d823d82207
|
array type fix; method registration
|
2020-01-07 13:10:09 +01:00 |
|
Alexander Medvednikov
|
706c6066d5
|
index expression
|
2020-01-07 12:18:13 +01:00 |
|
joe-conigliaro
|
b7509577b5
|
v: cleanup & fixes. update variadic & multiple return
|
2020-01-07 12:10:07 +01:00 |
|
Alexander Medvednikov
|
8c5923297e
|
do not run cgen_test.v on windows
|
2020-01-07 01:57:38 +01:00 |
|
Alexander Medvednikov
|
69f3c42b99
|
method calls; skip string interpolation for now; fix ()
|
2020-01-07 01:08:24 +01:00 |
|
Alexander Medvednikov
|
48ea1153a5
|
for ;; syntax
|
2020-01-07 00:14:19 +01:00 |
|
Alexander Medvednikov
|
1e28c1d4fd
|
clean up the parser a bit; run vfmt; add x64 to ci
|
2020-01-06 23:15:37 +01:00 |
|
Alexander Medvednikov
|
b815878d60
|
simplify and improve pratt
|
2020-01-06 16:13:12 +01:00 |
|
Delyan Angelov
|
c24a1b3786
|
compiler: fix unused import warnings
|
2020-01-05 16:29:33 +01:00 |
|
joe-conigliaro
|
5a6f9024d3
|
v: small fixes typo & register struct & and add array elem pointer
|
2020-01-05 11:52:03 +01:00 |
|
joe-conigliaro
|
2061394ad7
|
v: initial impl of new type sys w/ pointer & placeholder support (#3323)
|
2020-01-04 17:57:25 +01:00 |
|
Alexander Medvednikov
|
3344111a03
|
minor fixes and cleaning up
|
2020-01-04 00:06:06 +01:00 |
|
Alexander Medvednikov
|
520ec0f53a
|
fix cgen_test
|
2020-01-03 11:41:39 +01:00 |
|
joe-conigliaro
|
343ded18fd
|
parser: dot fix
|
2020-01-03 11:36:17 +01:00 |
|
Alexander Medvednikov
|
492dfebd15
|
SelectorExpr; receivers; struct field check; if expression
|
2020-01-02 20:09:23 +01:00 |
|
Alexander Medvednikov
|
a6a9958cfc
|
register fn args; remove dup code
|
2020-01-02 08:37:41 +01:00 |
|
Alexander Medvednikov
|
460b35137a
|
handle unknown fns; fn.v; type fixes
|
2020-01-02 08:30:15 +01:00 |
|
Alexander Medvednikov
|
e7e07be38c
|
handle unknown functions; fix var types
|
2020-01-01 23:15:20 +01:00 |
|
Alexander Medvednikov
|
b1d6021875
|
x64 fixes
|
2020-01-01 22:34:46 +01:00 |
|
Alexander Medvednikov
|
e53bb6a9d4
|
parser: wrong else
|
2020-01-01 13:12:38 +01:00 |
|
Alexander Medvednikov
|
327314c2c3
|
parser: unknown function error
|
2020-01-01 13:08:05 +01:00 |
|
Alexander Medvednikov
|
47908c22df
|
cgen_test: skip empty lines; os: make vc_gen compile
|
2020-01-01 12:50:25 +01:00 |
|
Alexander Medvednikov
|
2f8969c604
|
time: Windows fix
|
2020-01-01 12:01:03 +01:00 |
|
Alexander Medvednikov
|
79b4a757c4
|
fix cgen_test.v
|
2020-01-01 10:32:22 +01:00 |
|
Alexander Medvednikov
|
4794598d06
|
if x := opt() {} else {}
|
2020-01-01 10:31:50 +01:00 |
|
Alexander Medvednikov
|
96d02849aa
|
parser: parse_file(path)
|
2020-01-01 10:15:05 +01:00 |
|
Alexander Medvednikov
|
4d31d5882d
|
x64, v2 backends
|
2019-12-31 19:42:16 +01:00 |
|
Alexander Medvednikov
|
da5fb5dcbd
|
Revert "x64, v2 backends"
This reverts commit 81ae54d9bd .
|
2019-12-31 13:23:12 +01:00 |
|
Alexander Medvednikov
|
81ae54d9bd
|
x64, v2 backends
|
2019-12-31 13:21:22 +01:00 |
|
joe-conigliaro
|
80da2341aa
|
v: fix unary + ,- & rename token.TokenKind to token.Kind
|
2019-12-31 10:53:30 +01:00 |
|
Alexander Medvednikov
|
3a7f1db947
|
fix parser tests
|
2019-12-30 17:05:32 +01:00 |
|
Alexander Medvednikov
|
093a025ebf
|
parse_files(); ast.File
|
2019-12-30 16:55:59 +01:00 |
|
joe-conigliaro
|
d07953b0f0
|
v: fix postfix unary ++ -- operators & some cleanup
|
2019-12-30 15:06:56 +01:00 |
|
Alexander Medvednikov
|
2d597d7804
|
array initialization
|
2019-12-30 10:37:09 +01:00 |
|
Alexander Medvednikov
|
1d9916f93e
|
fix fn main generation
|
2019-12-30 09:29:07 +01:00 |
|
Alexander Medvednikov
|
f725aa2e8d
|
rename cgen module to gen; jsgen
|
2019-12-30 09:21:48 +01:00 |
|
Alexander Medvednikov
|
edf8a2cd08
|
fix bool expressions
|
2019-12-30 08:17:58 +01:00 |
|
Alexander Medvednikov
|
806691c1db
|
for loop; struct decl; struct init; < > <= >=
|
2019-12-30 08:05:20 +01:00 |
|
Alexander Medvednikov
|
2d2e0307b8
|
fn call; if expression; bool literals; 100k line program gen
fix
yay
lovely
|
2019-12-30 05:57:36 +01:00 |
|
Alexander Medvednikov
|
349576b5cd
|
fn call + fn args
|
2019-12-29 08:47:41 +01:00 |
|
Alexander Medvednikov
|
c915c58d12
|
local vars + Parser.errror()
|
2019-12-29 07:14:29 +01:00 |
|
Alexander Medvednikov
|
c81fbee4ab
|
fix parser_test.v
|
2019-12-29 06:49:52 +01:00 |
|
Alexander Medvednikov
|
5a6428f1ff
|
AssignStmt
|
2019-12-29 06:37:08 +01:00 |
|
Alexander Medvednikov
|
b5fe40624c
|
staments + a sum type fix
|
2019-12-28 18:53:08 +01:00 |
|
Delyan Angelov
|
68e1d8e8eb
|
net.ftp: make ftp's tests just compile (not run) on CI
|
2019-12-28 13:55:53 +01:00 |
|
Alexander Medvednikov
|
48585e54df
|
fix parser_text.v
|
2019-12-28 13:51:36 +01:00 |
|
Alexander Medvednikov
|
59c784ae57
|
fix cgen_test.v
|
2019-12-28 12:06:53 +01:00 |
|
Alexander Medvednikov
|
651c7e8de1
|
cgen tests
|
2019-12-28 11:55:14 +01:00 |
|
Alexander Medvednikov
|
379c79025b
|
run vfmt on v/
|
2019-12-28 10:38:29 +01:00 |
|
joe-conigliaro
|
a986321b6d
|
v: update parser / token & split parsing into methods
|
2019-12-28 09:15:32 +01:00 |
|
Alexander Medvednikov
|
796c376408
|
fix parser_test.v
|
2019-12-27 18:55:51 +01:00 |
|
Alexander Medvednikov
|
66a07d7fe0
|
FnDecl, Return, statement block
|
2019-12-27 18:39:19 +01:00 |
|
Alexander Medvednikov
|
fc5f4ff326
|
make types.check public
|
2019-12-27 10:12:40 +01:00 |
|
Alexander Medvednikov
|
d27c5eb345
|
handle floats
|
2019-12-27 10:09:06 +01:00 |
|
Alexander Medvednikov
|
1af274a714
|
test_parser + minor fixes
|
2019-12-27 10:00:44 +01:00 |
|
Alexander Medvednikov
|
55dbb8b81c
|
v.types module
|
2019-12-27 09:09:55 +01:00 |
|
Alexander Medvednikov
|
14e9c3c7bb
|
rename compiler2.parser to v.parser etc
|
2019-12-27 06:09:16 +01:00 |
|