Andrew Kelley
|
4e43973413
|
variable initializations are now mandatory
use `undefined` if you want uninitialized memory
|
2016-01-25 23:56:46 -07:00 |
Andrew Kelley
|
50854226a6
|
syntax: back to -> for return type, no more =>
|
2016-01-25 17:08:18 -07:00 |
Andrew Kelley
|
deb3586884
|
implement %% prefix operator
See #23
also make undefined constants use llvm undef value
|
2016-01-25 15:45:05 -07:00 |
Andrew Kelley
|
e85e7ebcf0
|
bootstrap: use %% operator instead of cast
|
2016-01-25 14:13:25 -07:00 |
Andrew Kelley
|
6db6609df8
|
implement %% operator
See #23
|
2016-01-25 13:53:40 -07:00 |
Andrew Kelley
|
bcb18338cd
|
update std lib to use error type and global variables
|
2016-01-24 22:53:00 -07:00 |
Andrew Kelley
|
f5cc7f65a3
|
fix parameter access of sret functions
|
2016-01-24 19:27:12 -07:00 |
Andrew Kelley
|
5c18826240
|
introduce the error keyword and type
See #23
|
2016-01-24 01:34:57 -07:00 |
Andrew Kelley
|
37aae53009
|
various small cleanups
|
2016-01-23 03:06:29 -07:00 |
Andrew Kelley
|
c0ea9290c4
|
main returns %void
|
2016-01-23 02:14:01 -07:00 |
Andrew Kelley
|
91d911007b
|
codegen: fix field access of arrays
also fix error type analyze error
|
2016-01-23 00:53:43 -07:00 |
Andrew Kelley
|
bfceb18631
|
character literal returns a number literal
|
2016-01-22 23:24:09 -07:00 |
Andrew Kelley
|
523e3b86af
|
support statically initialized array literal
|
2016-01-22 22:02:07 -07:00 |
Andrew Kelley
|
b61406b607
|
add test for const number literal
|
2016-01-22 16:02:08 -07:00 |
Andrew Kelley
|
32e2196257
|
number literal rework
|
2016-01-21 03:02:25 -07:00 |
Andrew Kelley
|
5e212db29c
|
parsing error value decls and error value literals
and return with '?' or '%' prefix
|
2016-01-20 18:18:50 -07:00 |
Andrew Kelley
|
ae2151a751
|
use signed integer for sizes of things
|
2016-01-18 21:13:14 -07:00 |
Andrew Kelley
|
32821e7098
|
add function pointer support
See #14
|
2016-01-18 16:42:45 -07:00 |
Andrew Kelley
|
4c50606b9d
|
refactor std to use for loop
|
2016-01-18 07:16:17 -07:00 |
Andrew Kelley
|
fbbef14013
|
add for loop which can iterate over arrays
See #51
|
2016-01-18 07:00:45 -07:00 |
Andrew Kelley
|
5f7685336f
|
better main symbol prototype
closes #64
|
2016-01-16 00:07:34 -07:00 |
Andrew Kelley
|
dc162c7f83
|
rename "use" to "import"
|
2016-01-15 18:45:52 -07:00 |
Andrew Kelley
|
86f55bce53
|
add void arrays test
|
2016-01-15 18:41:19 -07:00 |
Andrew Kelley
|
0c9afede9e
|
overflow intrinsics take type as first argument
|
2016-01-14 17:04:35 -07:00 |
Andrew Kelley
|
5f9ecb8566
|
instead of 'as' to cast, call type as function
|
2016-01-14 02:52:33 -07:00 |
Andrew Kelley
|
b28b7f63d1
|
all types are now expressions
See #22
|
2016-01-13 18:15:51 -07:00 |
Andrew Kelley
|
49d0971cd4
|
detect and report top level decl dependency loop
|
2016-01-10 00:03:31 -07:00 |
Andrew Kelley
|
6d9119fcd9
|
add memcpy and memset intrinsics
|
2016-01-09 02:16:54 -07:00 |
Andrew Kelley
|
bdca82ea66
|
implement pub const
|
2016-01-09 00:37:48 -07:00 |
Andrew Kelley
|
0c24ed8a81
|
rename `restrict` to `noalias`
|
2016-01-08 23:48:24 -07:00 |
Andrew Kelley
|
b7dd88ad68
|
suport checked arithmetic operations via intrinsics
closes #32
|
2016-01-08 23:41:40 -07:00 |
Andrew Kelley
|
14b9cbd43c
|
add restrict qualifier on pointer arguments
|
2016-01-08 20:59:47 -07:00 |
Andrew Kelley
|
d14a31100f
|
implement unknown size array indexing and slicing
|
2016-01-08 17:52:45 -07:00 |
Andrew Kelley
|
0c84ecd19d
|
codegen: fix else if expression and maybe unwrap expr
|
2016-01-08 03:59:37 -07:00 |
Andrew Kelley
|
e1f498212c
|
fix codegen for implicit maybe wrap
|
2016-01-08 02:52:27 -07:00 |
Andrew Kelley
|
a3c97081ca
|
add ?? maybe unwrapping binary operator
add null literal
fix number literal / maybe interactions
|
2016-01-07 03:23:38 -07:00 |
Andrew Kelley
|
9b9fd5ad23
|
re-add errno.zig
|
2016-01-07 03:22:53 -07:00 |
Andrew Kelley
|
c75d40680f
|
while detects simple constant condition
|
2016-01-06 18:02:42 -07:00 |
Andrew Kelley
|
5f0bfcac24
|
fix undefined reference to memcpy in release mode
when not depending on libc, we generate memcpy and memset
implementations.
|
2016-01-06 06:40:25 -07:00 |
Andrew Kelley
|
5e64c4d92f
|
support pub structs. move rand to std lib.
guess number example prints the answer now
|
2016-01-06 04:41:11 -07:00 |
Andrew Kelley
|
3c43bc9208
|
support unknown size arrays
|
2016-01-06 01:28:58 -07:00 |
Andrew Kelley
|
4ef062b9c8
|
array syntax is [10]i32 instead of [i32; 10]
|
2016-01-05 22:47:47 -07:00 |
Andrew Kelley
|
3327b0488d
|
add #min_value() and #max_value()
|
2016-01-05 06:30:49 -07:00 |
Andrew Kelley
|
44d5d008d0
|
partial import segregation
See #3
|
2016-01-04 03:31:57 -07:00 |
Andrew Kelley
|
b453345554
|
add rand example that doesn't yet work
|
2016-01-03 00:30:41 -07:00 |
Andrew Kelley
|
1abb4e59be
|
fix various bugs related to guess number example
|
2016-01-02 21:56:33 -07:00 |
Andrew Kelley
|
258bc73eee
|
fix implicit cast after unreachable bad code gen
|
2016-01-02 20:13:10 -07:00 |
Andrew Kelley
|
187d00ca83
|
ability to access pointers with array indexing syntax
closes #40
|
2016-01-02 19:47:36 -07:00 |
Andrew Kelley
|
968b85ad77
|
closer to guess number example working
|
2016-01-02 03:38:45 -07:00 |
Andrew Kelley
|
9ce36ba0cc
|
inline assembly uses -> instead of return
|
2015-12-23 15:49:34 -07:00 |
Andrew Kelley
|
1f48b626a1
|
std: even more efficient inline assembly
|
2015-12-15 02:47:39 -07:00 |
Andrew Kelley
|
673d638070
|
std: more efficient inline assembly
|
2015-12-15 01:55:52 -07:00 |
Andrew Kelley
|
a292eb8d64
|
support inline assembly expressions with return type
|
2015-12-15 00:46:56 -07:00 |
Andrew Kelley
|
66ca916805
|
std: expose exit syscall
|
2015-12-15 00:07:51 -07:00 |
Andrew Kelley
|
83b68c9f13
|
add global variable support
closes #12
|
2015-12-14 23:10:18 -07:00 |
Andrew Kelley
|
3049410260
|
`const` and `var` instead of `let` and `let mut`
closes #34
|
2015-12-14 18:51:07 -07:00 |
Andrew Kelley
|
f17e20d5fe
|
instead of *mut and *const, & and &const
closes #33
|
2015-12-14 18:10:25 -07:00 |
Andrew Kelley
|
630917b29b
|
std: factor out the write syscall and make it public
|
2015-12-14 03:06:54 -07:00 |
Andrew Kelley
|
e411467e1d
|
add number literal type
it gets implicitly casted to whatever is needed.
closes #24
|
2015-12-14 02:46:37 -07:00 |
Andrew Kelley
|
ac630d354d
|
std: print_str no longer requires length argument
add explicit casting support from array to string
|
2015-12-12 02:05:08 -07:00 |
Andrew Kelley
|
a10277bd94
|
prepare codebase for struct and string support
parsing code for structs, strings, and c string literals
partial semantic analyzing code for structs, strings, and c string literals
|
2015-12-12 00:10:37 -07:00 |
Andrew Kelley
|
d697404f64
|
hello world working without libc
|
2015-12-11 03:55:26 -07:00 |
Andrew Kelley
|
15ba5bc54e
|
provide std.zig and add it to import paths
|
2015-12-10 17:42:47 -07:00 |
Andrew Kelley
|
0dbee2300e
|
add inline assembly support
|
2015-12-10 15:34:38 -07:00 |