Andrew Kelley
|
32e2196257
|
number literal rework
|
2016-01-21 03:02:25 -07:00 |
|
Andrew Kelley
|
3a326d5005
|
pave the road for function pointers
See #14
|
2016-01-18 08:50:10 -07:00 |
|
Andrew Kelley
|
0c9afede9e
|
overflow intrinsics take type as first argument
|
2016-01-14 17:04:35 -07:00 |
|
Andrew Kelley
|
b28b7f63d1
|
all types are now expressions
See #22
|
2016-01-13 18:15:51 -07:00 |
|
Andrew Kelley
|
4d7835e21a
|
delete unused enumfield and enumdecl node types
|
2016-01-10 17:27:58 -07:00 |
|
Andrew Kelley
|
3ef2f7058b
|
refactor out the horrible beast that was codegen_node
|
2016-01-10 15:13:39 -07:00 |
|
Andrew Kelley
|
35b74d4013
|
order-independent declarations even from imports
closes #42
|
2016-01-10 01:25:20 -07:00 |
|
Andrew Kelley
|
1fe1235e14
|
order-independent declarations
code constructs and traverses a dependency graph in a deterministic
order.
|
2016-01-09 23:49:22 -07:00 |
|
Andrew Kelley
|
6d9119fcd9
|
add memcpy and memset intrinsics
|
2016-01-09 02:16:54 -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
|
0c84ecd19d
|
codegen: fix else if expression and maybe unwrap expr
|
2016-01-08 03:59:37 -07:00 |
|
Andrew Kelley
|
9aea99a999
|
implement array slicing syntax
closes #52
|
2016-01-07 05:29:11 -07:00 |
|
Andrew Kelley
|
c75d40680f
|
while detects simple constant condition
|
2016-01-06 18:02:42 -07:00 |
|
Andrew Kelley
|
3c43bc9208
|
support unknown size arrays
|
2016-01-06 01:28:58 -07:00 |
|
Andrew Kelley
|
e1ff201d60
|
fix crash when struct field is invalid
|
2016-01-04 21:42:35 -07:00 |
|
Andrew Kelley
|
22c52f1eb6
|
member functions get a namespaced symbol
|
2016-01-04 17:14:53 -07:00 |
|
Andrew Kelley
|
4514661cfe
|
add member functions
|
2016-01-04 16:57:22 -07:00 |
|
Andrew Kelley
|
2c8958f454
|
import segregation for types
See #3
|
2016-01-04 03:52:37 -07:00 |
|
Andrew Kelley
|
44d5d008d0
|
partial import segregation
See #3
|
2016-01-04 03:31:57 -07:00 |
|
Andrew Kelley
|
fa6e3eec46
|
add #typeof() compiler function
|
2016-01-03 18:17:50 -07:00 |
|
Andrew Kelley
|
fb1e3a5be9
|
codegen: emit debug metadata for parameters
|
2016-01-02 20:42:32 -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
|
5943f99510
|
implement continue expression
closes #6
|
2015-12-24 15:36:49 -07:00 |
|
Andrew Kelley
|
44ca5e19dc
|
add error for break outside loop
also fix break in nested loops
|
2015-12-24 15:30:55 -07:00 |
|
Andrew Kelley
|
5ceaae288c
|
add break expression
|
2015-12-24 15:09:47 -07:00 |
|
Andrew Kelley
|
50357dad45
|
add struct value expression
|
2015-12-24 00:00:23 -07:00 |
|
Andrew Kelley
|
e21369a153
|
codegen: support byvalue struct assignment
|
2015-12-23 03:19:22 -07:00 |
|
Andrew Kelley
|
fe3ad27d5f
|
analyze: error for infinite size struct
|
2015-12-22 13:41:33 -07:00 |
|
Andrew Kelley
|
e4cb28dbf2
|
structs have debug information
|
2015-12-16 17:11:35 -07:00 |
|
Andrew Kelley
|
aa56f016f7
|
support addressof operator and struct pointer field access
|
2015-12-15 20:08:53 -07:00 |
|
Andrew Kelley
|
28c5a8f2ca
|
analyze: clean up type checking
|
2015-12-15 18:21:59 -07:00 |
|
Andrew Kelley
|
431d8f946f
|
implicit casting from constant size array to string
closes #36
|
2015-12-15 17:29:44 -07:00 |
|
Andrew Kelley
|
423ee0689b
|
add implicit casting support
|
2015-12-15 17:11:57 -07:00 |
|
Andrew Kelley
|
f5a3281877
|
when linking with libc use the C runtime library
|
2015-12-15 12:44:42 -07:00 |
|
Andrew Kelley
|
4dc2b82506
|
constant initializers allow simple expressions
|
2015-12-14 23:49:56 -07:00 |
|
Andrew Kelley
|
83b68c9f13
|
add global variable support
closes #12
|
2015-12-14 23:10:18 -07:00 |
|
Andrew Kelley
|
52e19b4a9b
|
analyze: BlockContext has concept of module scope
|
2015-12-14 22:06:25 -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
|
3d8eb10897
|
fix incorrect debug info path to imports
|
2015-12-13 14:34:07 -07:00 |
|
Andrew Kelley
|
bd77bc749a
|
structs are working
|
2015-12-12 22:55:29 -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
|
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 |
|
Andrew Kelley
|
6e0c3dc173
|
array access support
|
2015-12-08 14:47:17 -07:00 |
|