Andrew Kelley
|
97c61313da
|
c_import of stdio.h works for some functions
See #88
|
2016-01-27 23:23:02 -07:00 |
Andrew Kelley
|
e809baa866
|
remove bogus example code
|
2016-01-27 12:35:06 -07:00 |
Andrew Kelley
|
5afe473a86
|
different extern syntax and simplify parsing top level decls
|
2016-01-26 13:08:21 -07:00 |
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
|
a37bb4a4da
|
add the C integer types
|
2016-01-25 23:21:13 -07:00 |
Andrew Kelley
|
1d68150242
|
compiler enforces checking for error
See #23
|
2016-01-25 20:27:57 -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
|
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
|
706f72f1b4
|
fix hang when returning from while loop
also fixes duplicate error message for function missing
return type.
also makes guess number game use %void for main return type.
closes #58
|
2016-01-23 02:46:24 -07:00 |
Andrew Kelley
|
c0ea9290c4
|
main returns %void
|
2016-01-23 02:14:01 -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
|
ad9759bc8e
|
basic support for switch expression
|
2016-01-20 02:12:24 -07:00 |
Andrew Kelley
|
ae2151a751
|
use signed integer for sizes of things
|
2016-01-18 21:13:14 -07:00 |
Andrew Kelley
|
92dccde2fd
|
revise plan for cat example
|
2016-01-18 19:32:27 -07:00 |
Andrew Kelley
|
826c7f06a3
|
fix cat example
|
2016-01-16 03:31:43 -07:00 |
Andrew Kelley
|
9e74b7e754
|
proposed cat example implementation
|
2016-01-16 03:10:15 -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
|
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
|
75d5786603
|
cleanup guess number example
|
2016-01-10 01:32:15 -07:00 |
Andrew Kelley
|
bdca82ea66
|
implement pub const
|
2016-01-09 00:37:48 -07:00 |
Andrew Kelley
|
2a8d6af7ba
|
fix guess number example. now it works
|
2016-01-08 04:08:42 -07:00 |
Andrew Kelley
|
0c84ecd19d
|
codegen: fix else if expression and maybe unwrap expr
|
2016-01-08 03:59:37 -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
|
c75d40680f
|
while detects simple constant condition
|
2016-01-06 18:02:42 -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
|
f1eafe4ebb
|
fix bug in RNG example
|
2016-01-06 03:53:30 -07:00 |
Andrew Kelley
|
9c775d2111
|
codegen: fix member function invocation
|
2016-01-06 02:05:45 -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
|
e21a83dd74
|
update rand example
|
2016-01-05 17:02:26 -07:00 |
Andrew Kelley
|
4ce0fcb569
|
fix some errors in rand example
|
2016-01-05 06:50:06 -07:00 |
Andrew Kelley
|
3327b0488d
|
add #min_value() and #max_value()
|
2016-01-05 06:30:49 -07:00 |
Andrew Kelley
|
e1ff201d60
|
fix crash when struct field is invalid
|
2016-01-04 21:42:35 -07:00 |
Andrew Kelley
|
333a322127
|
multiple files example no longer use libc
|
2016-01-04 01:52:32 -07:00 |
Andrew Kelley
|
fa6e3eec46
|
add #typeof() compiler function
|
2016-01-03 18:17:50 -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
|
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
|
9a8851515b
|
basic maybe type working
|
2016-01-02 00:06:06 -07:00 |
Andrew Kelley
|
b3ac5c16ec
|
block expressions require parens
closes #39
|
2015-12-31 16:04:13 -07:00 |
Andrew Kelley
|
7ba99e9715
|
analyze if maybe var expressions
|
2015-12-26 15:43:40 -07:00 |
Andrew Kelley
|
1f8e3871ee
|
parse if maybe expression
|
2015-12-26 15:05:27 -07:00 |