Alexander Medvednikov
|
a3bd19ce73
|
cgen: generate enums earlier
|
2020-03-31 20:26:15 +02:00 |
Alexander Medvednikov
|
2b563bc69f
|
v2: initial interface support; fix enum_hex_test.v
|
2020-03-31 19:59:41 +02:00 |
Delyan Angelov
|
50143ad9bf
|
v2: be silent by default
|
2020-03-31 19:58:44 +02:00 |
Alexander Medvednikov
|
2fe0e80569
|
cgen: enum default values
|
2020-03-31 19:43:11 +02:00 |
Alexander Medvednikov
|
956bf23390
|
memory fixes: 21% of V compiler leaks fixed
|
2020-03-31 14:33:16 +02:00 |
joe-conigliaro
|
71ca553190
|
cgen: multi return/assign optionals
|
2020-03-31 15:34:59 +11:00 |
Delyan Angelov
|
07de351546
|
v2: support -stats for _test.v files
|
2020-03-30 17:21:32 +02:00 |
joe-conigliaro
|
3440d7edd8
|
ast: first step merging CallExpr & MethodCallExpr
|
2020-03-30 21:39:20 +11:00 |
joe-conigliaro
|
837bffd03a
|
parser: parse type - fix multiple &
|
2020-03-29 01:15:10 +11:00 |
Alexander Medvednikov
|
831be43740
|
checker: check ! operator
|
2020-03-28 14:38:16 +01:00 |
Alexander Medvednikov
|
f6db36d7f0
|
fix parser_test and vfmt.v
|
2020-03-27 15:24:08 +01:00 |
Alexander Medvednikov
|
7369cb7b86
|
fmt: fix tests
|
2020-03-27 15:19:13 +01:00 |
Alexander Medvednikov
|
473d9fef55
|
checker: do not allow extra () in if conditions
|
2020-03-27 14:57:19 +01:00 |
Alexander Medvednikov
|
1a751208ca
|
cgen: skip $if os {} block
|
2020-03-27 14:44:30 +01:00 |
Alexander Medvednikov
|
db59c621e8
|
v2: minor fixes
|
2020-03-27 08:47:02 +01:00 |
Alexander Medvednikov
|
f2c9592b86
|
cgen: fix () in & exprs
|
2020-03-26 10:44:59 +01:00 |
Joe Conigliaro
|
bb76e5da91
|
parser: array map fixe
|
2020-03-25 20:09:50 +11:00 |
Delyan Angelov
|
2a7bc63919
|
vmft2: support for multiline comments, CompIf, AssertStmt, octal literals
|
2020-03-24 22:18:58 +01:00 |
Alexander Medvednikov
|
5d976d841b
|
v2: raw strings
|
2020-03-24 17:07:27 +01:00 |
Joe Conigliaro
|
4d3362358f
|
parser: array init &element fix
|
2020-03-25 02:24:23 +11:00 |
Alexander Medvednikov
|
e012966291
|
parser/ast: Block
|
2020-03-24 15:44:17 +01:00 |
Joe Conigliaro
|
9a8bd3f7fa
|
checker: variadic method fix
|
2020-03-24 22:39:11 +11:00 |
Joe Conigliaro
|
076bc2b773
|
cgen/checker: fixes & fixes & tmp fixes :D
|
2020-03-23 02:22:49 +11:00 |
Alexander Medvednikov
|
ce73ced932
|
cgen: #else
|
2020-03-22 14:54:31 +01:00 |
Alexander Medvednikov
|
c2ce06eba7
|
cgen: generate #ifdefs
|
2020-03-22 13:55:39 +01:00 |
Alexander Medvednikov
|
7b689d8c52
|
ast: CompIf position
|
2020-03-22 11:53:08 +01:00 |
Alexander Medvednikov
|
ab3f6d9202
|
cgen: generate indents for more readable C code
|
2020-03-22 10:12:45 +01:00 |
Alexander Medvednikov
|
e5f6a0949f
|
cgen: autofree: first step
|
2020-03-21 19:52:19 +01:00 |
Joe Conigliaro
|
f7042e9038
|
cgen: sum type cast & map str() receiver
|
2020-03-21 23:57:11 +11:00 |
Alexander Medvednikov
|
7b1b647832
|
parser: disable parser_test.v for now
|
2020-03-21 11:55:49 +01:00 |
Alexander Medvednikov
|
5072320803
|
cgen/ast/checker: string interpolation
|
2020-03-21 07:01:11 +01:00 |
Alexander Medvednikov
|
8077a7534e
|
cgen: 7 errors left
|
2020-03-20 20:22:37 +01:00 |
Joe Conigliaro
|
a331abf675
|
ast/cgen/parser: combine IfExpr branches into single node
|
2020-03-21 00:39:56 +11:00 |
Alexander Medvednikov
|
b290efa394
|
ast: TypeOf
|
2020-03-19 12:15:42 +01:00 |
Alexander Medvednikov
|
013fd5abfe
|
cgen: fix array.last()
|
2020-03-19 08:49:47 +01:00 |
Alexander Medvednikov
|
28309da1f1
|
cgen: assoc
|
2020-03-19 08:14:09 +01:00 |
Alexander Medvednikov
|
3dc3b11435
|
parser: $if blocks for headers
|
2020-03-19 07:59:01 +01:00 |
Joe Conigliaro
|
c4f6125a31
|
gen/checker: add errors for as cast & for in var
|
2020-03-19 00:50:21 +11:00 |
Joe Conigliaro
|
4262ff76c3
|
checker/parser: check & gen stmts for ForIn & fix key, val vars
|
2020-03-18 23:18:18 +11:00 |
Joe Conigliaro
|
54c38e3e3a
|
parser: remove option from err var type
|
2020-03-18 20:00:33 +11:00 |
Joe Conigliaro
|
126ef0f5c2
|
checker/gen: add unchecked exprs & small fixes
|
2020-03-18 19:56:19 +11:00 |
Alexander Medvednikov
|
a011b8951a
|
cgen: if/match expressions and other fixes
|
2020-03-18 08:41:49 +01:00 |
Joe Conigliaro
|
3fecf154aa
|
gen: move helper fns to ast
|
2020-03-18 11:19:23 +11:00 |
Delyan Angelov
|
f73b38a0d8
|
vfmt2: fix literal integer number formatting
|
2020-03-17 02:49:15 +01:00 |
Alexander Medvednikov
|
900ada1112
|
cgen: match: do not use a temp var; minor fixes
|
2020-03-16 10:53:36 +01:00 |
Joe Conigliaro
|
cf094c6265
|
cgen: gen fn type declerations
|
2020-03-16 20:12:03 +11:00 |
Alexander Medvednikov
|
0f160707a4
|
cgen: GoStmt; experimental parallel parser
|
2020-03-16 08:33:42 +01:00 |
Alexander Medvednikov
|
66adf7a6b9
|
cgen: minor sum type fix
|
2020-03-16 05:02:41 +01:00 |
Alexander Medvednikov
|
37504c487a
|
cgen: sum types: match
|
2020-03-16 03:19:26 +01:00 |
Alexander Medvednikov
|
843bb6dac1
|
cgen: lots of fixes
|
2020-03-15 00:46:08 +01:00 |
Joe Conigliaro
|
50ed4004f4
|
ast/table: use common struct fn decl arguments
|
2020-03-15 09:21:36 +11:00 |
Joe Conigliaro
|
cc338df77f
|
parser/checker/gen: update call args to use ast.CallArg
|
2020-03-14 21:11:43 +11:00 |
Joe Conigliaro
|
6752fed9f2
|
parser: fix generated name for unnamed fn args
|
2020-03-14 20:24:45 +11:00 |
Alexander Medvednikov
|
e8c9f609a4
|
cgen: enum fixes; sum type definition; const bug fix
|
2020-03-14 05:20:15 +01:00 |
Alexander Medvednikov
|
4b4c47461b
|
cgen: error fixes; table: simplify; compiler tests
|
2020-03-13 01:43:30 +01:00 |
Alexander Medvednikov
|
e0c85f87ae
|
cgen: args fixes
|
2020-03-11 21:11:27 +01:00 |
Alexander Medvednikov
|
4470252913
|
parser: fix import's position
|
2020-03-11 18:52:55 +01:00 |
Joe Conigliaro
|
a1314bd199
|
checker/gen/table: impl fn types & sum/other fixes & tidy
|
2020-03-12 02:10:46 +11:00 |
Joe Conigliaro
|
7513dab185
|
table/checker: proper parent field/method lookup & cleanup
|
2020-03-11 20:48:45 +11:00 |
Alexander Medvednikov
|
75db3e4416
|
cgen: fix ptr indexing
|
2020-03-11 05:25:15 +01:00 |
Alexander Medvednikov
|
22e558aecb
|
cgen: fix C style loops without an init; fix integer consts
|
2020-03-11 02:44:30 +01:00 |
Alexander Medvednikov
|
de55a26cfe
|
cgen: lots of fixes
|
2020-03-10 23:21:29 +01:00 |
Joe Conigliaro
|
ddd5a9443d
|
v: fix AssignStmt
|
2020-03-11 00:45:21 +11:00 |
Alexander Medvednikov
|
2f0bb11a96
|
parser: handle operator methods and fix them in vdoc
|
2020-03-10 14:40:35 +01:00 |
Joe Conigliaro
|
f7a93a69f6
|
v: fix/gen multi return/assign + merge VarDecl & AssignStmt
|
2020-03-10 22:01:37 +11:00 |
Alexander Medvednikov
|
754a6cc93e
|
cgen: fix ->
|
2020-03-08 19:38:27 +01:00 |
yuyi
|
783dee1f48
|
os: merge with filepath
|
2020-03-07 22:26:26 +01:00 |
Delyan Angelov
|
5e541e1f11
|
vfmt: alias type and sum type + sum type fix
|
2020-03-07 17:37:55 +01:00 |
Alexander Medvednikov
|
63032c4bb7
|
cgen: minor fixes
|
2020-03-07 16:23:10 +01:00 |
Joe Conigliaro
|
09d9dd2607
|
v: add map init
|
2020-03-07 18:13:00 +11:00 |
Alexander Medvednikov
|
1a8b7d0447
|
cgen: fix slices
|
2020-03-06 22:24:42 +01:00 |
Alexey
|
81ce524705
|
ast: add Expr to AsCast
|
2020-03-06 22:12:15 +01:00 |
Alexander Medvednikov
|
be2480c320
|
cgen: fix several errors
|
2020-03-06 16:31:44 +01:00 |
Alexander Medvednikov
|
6b6031a3d9
|
cgen: fix struct init; match SumType1, SumType2
|
2020-03-06 14:14:33 +01:00 |
Joe Conigliaro
|
49f3ce0571
|
v2: add method call receiver to cgen & check method args
|
2020-03-06 20:52:03 +11:00 |
Alexander Medvednikov
|
9c1e50b1aa
|
vdoc: don't show deprecated functions
|
2020-03-05 16:13:14 +01:00 |
Joe Conigliaro
|
8ad8d03bc8
|
v2: remove test code from last commit in parser
|
2020-03-06 00:00:34 +11:00 |
Joe Conigliaro
|
272eaaa704
|
v2: remove type fields from parser & some cleanup
|
2020-03-05 23:57:05 +11:00 |
Joe Conigliaro
|
9921897aa6
|
v2: add some comments in parser & checker
|
2020-03-05 22:44:33 +11:00 |
Joe Conigliaro
|
ee6a8a41f5
|
v2: remove expr type from fn.v
|
2020-03-05 22:13:45 +11:00 |
Joe Conigliaro
|
4d55a4c097
|
v2: remove expr types & some dead code from parser
|
2020-03-05 22:08:43 +11:00 |
Alexander Medvednikov
|
4161cfcdb8
|
cgen: lots of fixes
|
2020-03-05 00:43:09 +01:00 |
Alexander Medvednikov
|
cd8a5d1f2e
|
fix parser_test.v and string_test.v
|
2020-03-04 17:39:27 +01:00 |
Alexander Medvednikov
|
f27f832ede
|
cgen: definitions + other fixes; calloc fix
|
2020-03-04 17:08:28 +01:00 |
Joe Conigliaro
|
e71948461e
|
v2: update MatchExpr
|
2020-03-04 21:59:45 +11:00 |
Joe Conigliaro
|
d501ea0afb
|
v2: fix array init
|
2020-03-04 12:50:32 +11:00 |
Joe Conigliaro
|
c633dd09c6
|
v2: dont use type type in `<<` infix in parser
|
2020-03-04 02:08:40 +11:00 |
Joe Conigliaro
|
063ca3b644
|
v2: make array append `<<` right associative
|
2020-03-04 02:05:16 +11:00 |
Joe Conigliaro
|
147ecc5e17
|
v2: time - prefix C struct & ast.TypeName to ast.Type
|
2020-03-04 01:06:21 +11:00 |
Joe Conigliaro
|
af3159791f
|
v2: reset expr_mod after struct_init type is parsed
|
2020-03-04 00:24:15 +11:00 |
Joe Conigliaro
|
895a1711cb
|
v2: fix type aliases & add check
|
2020-03-03 09:19:04 +11:00 |
Alexander Medvednikov
|
22ffe336cb
|
checker: AsCast, CharLiteral, fix integer index check
|
2020-03-02 19:00:33 +01:00 |
Joe Conigliaro
|
5b08f307c8
|
v2: fix map initialization
|
2020-03-02 22:34:02 +11:00 |
Joe Conigliaro
|
f57a651e3b
|
v2: match expr fixes & tmp typeof skip
|
2020-03-02 20:53:38 +11:00 |
joe-conigliaro
|
a8f07157dd
|
v2: implement sym types & handle in table.check
|
2020-03-02 16:40:18 +11:00 |
joe-conigliaro
|
b65fad9ca8
|
v2: fix if guard var type & handle blank ident in assign
|
2020-03-02 16:05:40 +11:00 |
Joe Conigliaro
|
a707ffc04a
|
v2: name_expr mod & type & var fixes
|
2020-03-02 02:14:52 +11:00 |
Joe Conigliaro
|
1ab830da4b
|
v2: fix var mistaken for enum in parser
|
2020-03-02 01:19:10 +11:00 |
Alexander Medvednikov
|
27ce38937c
|
checker: fix Assoc
|
2020-02-29 18:07:29 +01:00 |
Alexander Medvednikov
|
85f67a3f73
|
fix prod build
|
2020-02-29 17:53:04 +01:00 |
Alexander Medvednikov
|
d5faf36aa9
|
fmt: comments
|
2020-02-29 17:51:38 +01:00 |
lydiandy
|
a485533dc9
|
make sure scanner and parser both check BOM
|
2020-02-29 15:05:25 +01:00 |
Alexey
|
ee0a0afb25
|
v2: process `or` block for `CallExpr`
|
2020-02-29 15:03:32 +01:00 |
Joe Conigliaro
|
f67fca826e
|
v2: fix C function & type prefixing
|
2020-02-29 21:47:47 +11:00 |
Joe Conigliaro
|
48f912c2e9
|
v2: handle variadic in selector_expr
|
2020-02-29 19:04:47 +11:00 |
Joe Conigliaro
|
71b5b0d955
|
v2: fix C fn calls, save C fns with prefix besides odd cases
|
2020-02-29 17:24:28 +11:00 |
Joe Conigliaro
|
8e013d2174
|
v2: skip minus in string expr for now
|
2020-02-29 15:56:16 +11:00 |
Alexander Medvednikov
|
ccf4f61521
|
ast: ParExpr, OrExpr, IfGuardExpr; ForInStmt fix; remove all cap vars
|
2020-02-28 15:36:41 +01:00 |
Alexander Medvednikov
|
6a198df3af
|
v2: ParExpr; mut var decl
|
2020-02-28 14:41:19 +01:00 |
Alexander Medvednikov
|
7f5a15372f
|
os: fix get_raw_line() + minor v2 fixes
|
2020-02-28 14:05:20 +01:00 |
Joe Conigliaro
|
c4b9ef388f
|
v2: handle var decl & assign stmt together 1st step combining
|
2020-02-28 23:29:04 +11:00 |
Alexander Medvednikov
|
87205367d1
|
v2: minor fixes
|
2020-02-27 21:51:40 +01:00 |
Alexander Medvednikov
|
d619944cf5
|
vfmt: []xxx; mut args
|
2020-02-27 21:00:33 +01:00 |
Alexander Medvednikov
|
4f0d505c65
|
v2: `if x := `; fix `for key, val in`; CastExpr
|
2020-02-27 18:02:40 +01:00 |
Alexander Medvednikov
|
3bde876097
|
v2: checker: fix --/++
|
2020-02-27 17:31:10 +01:00 |
Alexander Medvednikov
|
09b7a7c872
|
v2: checker: handle clone()
|
2020-02-27 17:21:13 +01:00 |
Joe Conigliaro
|
aba0bb5e01
|
v2: fix condition in AssignStmt
|
2020-02-27 21:15:30 +11:00 |
Joe Conigliaro
|
237d83b2ee
|
v2: more work on AssignStmt & multi ret & initial blank ident
|
2020-02-27 21:12:30 +11:00 |
joe-conigliaro
|
cfbd8ab7e7
|
v2: parser - use defer to make sure scope is closed for filter
|
2020-02-27 17:00:24 +11:00 |
Alexander Medvednikov
|
06fc8a830b
|
v2: fix a bug with `mod.const`
|
2020-02-27 03:30:17 +01:00 |
Alexander Medvednikov
|
bb6098e2d3
|
v2: fix `type f fn...`
|
2020-02-27 00:18:14 +01:00 |
Alexander Medvednikov
|
c51f464446
|
v2: fix `mod.Enum.val` and `x = .val`
|
2020-02-27 00:12:40 +01:00 |
Alexey
|
ca9fa6407f
|
v2: distinguish public and private constants
|
2020-02-26 22:43:37 +01:00 |
Alexey
|
70f085be18
|
v2: process unsafe statements
|
2020-02-26 20:45:03 +01:00 |
Alexander Medvednikov
|
857cbfb0d2
|
v2: short struct init syntax; .xxx enum checks; unions; assert
|
2020-02-26 15:51:05 +01:00 |
Alexander Medvednikov
|
28ee0f4ebe
|
checker: check enums
|
2020-02-25 15:02:34 +01:00 |
Alexander Medvednikov
|
f6c2b3a54b
|
v2: enum fixes
|
2020-02-25 13:30:43 +01:00 |
Alexey
|
26fa833984
|
fmt: process assignment statement correctly
|
2020-02-23 11:22:07 +01:00 |
Alexander Medvednikov
|
dd29bfe4d2
|
fix fmt test
|
2020-02-22 17:07:03 +01:00 |
Alexander Medvednikov
|
d510cd1e0d
|
fmt: else, for in
|
2020-02-22 16:59:50 +01:00 |
Alexander Medvednikov
|
5fef8390a1
|
fmt: assoc
|
2020-02-22 14:39:25 +01:00 |
Alexander Medvednikov
|
cd41967aa1
|
fmt: struct pub/mut fields, map init
|
2020-02-22 14:13:22 +01:00 |
joe-conigliaro
|
30c8a5a010
|
v2: temp const fix
|
2020-02-22 23:04:56 +11:00 |
joe-conigliaro
|
15c288b444
|
v2: small type cleanup
|
2020-02-22 08:50:21 +11:00 |
joe-conigliaro
|
8bb8b7d76e
|
v2: add ability to store extra information with Type such as optional
|
2020-02-21 21:44:06 +11:00 |
Alexander Medvednikov
|
e56bf42270
|
v2: xor, for x = ...
|
2020-02-20 21:28:08 +01:00 |
Alexander Medvednikov
|
296e736f5b
|
checker: minor fixes
|
2020-02-20 16:16:44 +01:00 |
joe-conigliaro
|
fcd97f513a
|
v2: module/type/fn name fixes, compile fixes
|
2020-02-20 21:13:18 +11:00 |
Alexander Medvednikov
|
ec3d67c19f
|
checker: print multiple errors; none
|
2020-02-19 19:54:42 +01:00 |
Alexander Medvednikov
|
092c09d81f
|
vdoc using the new parser
|
2020-02-19 16:13:34 +01:00 |
joe-conigliaro
|
e4179c0008
|
v2: more array init & index expr fixes
|
2020-02-20 00:34:44 +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
|
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 |
Alexander Medvednikov
|
19520ccf4e
|
v2: for in checker
|
2020-02-18 21:59:42 +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
|
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 |
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 |
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 |
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 |
joe-conigliaro
|
e274c5c485
|
v2: type sys - store type idx/ptr in int & add helpers
|
2020-02-10 08:32:08 +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
|
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
|
f1f8a2e4dd
|
fix prod build
|
2020-02-03 12:06:25 +01:00 |
Alexander Medvednikov
|
54605823f9
|
rem1
|
2020-02-03 11:45:25 +01:00 |
Alexander Medvednikov
|
6489b48c9c
|
v2: clean up IndexExpr type check
|
2020-02-03 11:29:50 +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 |
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
|
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 |
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
|
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 |
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
|
2f8969c604
|
time: Windows fix
|
2020-01-01 12:01:03 +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
|
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 |