Commit Graph

112 Commits

Author SHA1 Message Date
Ginger Bill
2b96be0ae8 Remove unnecessary typedef usage 2017-06-08 13:08:39 +01:00
Ginger Bill
2a89d8021c Use templated Array with bounds checking 2017-06-08 12:54:52 +01:00
Ginger Bill
13deb4706c Update String to use overloading 2017-06-08 12:37:07 +01:00
Ginger Bill
9b61adb97d Build as C++ 2017-06-08 12:03:40 +01:00
Ginger Bill
4d30ef7eda Change extensions .cpp to .c 2016-11-23 12:29:50 +00:00
Ginger Bill
a77c6b3e55 Compile as C! Whoop! 2016-11-23 12:25:37 +00:00
Ginger Bill
ef8563a818 Remove auto 2016-11-23 12:03:26 +00:00
Ginger Bill
aa2bcb166f typedef struct and start removing auto 2016-11-23 11:07:35 +00:00
Ginger Bill
8ecfca0c9b Remove templated Map; replace with #include macro "templates" trick 2016-11-23 10:36:48 +00:00
Ginger Bill
cb7b9a413d Remove Array<T> and replace with macro version 2016-11-22 21:29:57 +00:00
Ginger Bill
3517f96668 Remove: string overloads; defer 2016-11-22 20:29:46 +00:00
Ginger Bill
36ad9dae43 128 bit integers
Kind of works but may be buggy due to LLVM not actually sure
2016-11-22 00:13:52 +00:00
Ginger Bill
24347ced45 Support any in match type 2016-11-20 01:34:43 +00:00
Ginger Bill
0cab083b8f #foreign_library; vector fields (x, y, z, w) for count <= 4 2016-11-15 12:06:58 +00:00
Ginger Bill
3ec67853e1 Minor Entity refactor 2016-10-30 13:20:45 +00:00
Ginger Bill
aed7a83f5b Code reorganization - Separate files and slice refactoring 2016-10-26 15:05:41 +01:00
Ginger Bill
b454371f3b Separation of certain instructions for better clarity. 2016-10-23 15:57:59 +01:00
Ginger Bill
bd5d095de4 Separate ssa_struct_gep and ssa_array_gep procedures 2016-10-23 14:46:52 +01:00
Ginger Bill
f60dc7b0a7 Minor Style Fixes 2016-10-22 19:41:58 +01:00
Ginger Bill
a675d3f94d union_cast 2016-10-16 21:31:06 +01:00
Ginger Bill
f5318c46d1 Implicit Values: context; Fix lvalue selector assignments; Fix offset_of* for using fields. 2016-10-10 10:27:50 +01:00
Ginger Bill
90babbfbf3 Very Basic Profiling 2016-10-09 20:14:32 +01:00
Ginger Bill
b705fa7f22 Change from gbArray(T) to Array<T> 2016-10-08 20:37:31 +01:00
Ginger Bill
a5c6340316 "Maybe-fy" operator 2016-10-08 10:01:29 +01:00
Ginger Bill
c5d20d2eef Demaybe operator ? 2016-10-07 09:41:38 +01:00
Ginger Bill
f40482aa29 Maybe types; value, ok := maybe_value(x) 2016-10-06 23:30:22 +01:00
Ginger Bill
50301557b2 Untyped nil 2016-10-06 17:11:17 +01:00
Ginger Bill
f6589d9814 Refactor: Remove dead code 2016-10-02 21:45:24 +01:00
Ginger Bill
17ab23f1f0 Const Aggregate Literals for IR; Module path fix 2016-09-30 23:34:32 +01:00
Ginger Bill
c6aac264fa Begin work on const llvm aggregate literals 2016-09-30 20:38:46 +01:00
Ginger Bill
b593332942 Minimal Dependency Map: Only build what is needed 2016-09-27 15:28:44 +01:00
Ginger Bill
a31bab5aae Unicode file loading; push_allocator & push_context 2016-09-23 14:59:58 +01:00
Ginger Bill
664c2cd7a5 Fix enum type comparison; Start demo 003 code 2016-09-21 23:26:31 +01:00
Ginger Bill
0e2347e582 Filename as default import name; as .; as _; panic() 2016-09-21 14:46:56 +01:00
Ginger Bill
3b266b194f enum_to_string fix; enum count, min_value, max_value 2016-09-19 22:26:07 +01:00
Ginger Bill
9561dc33ce enum_to_string 2016-09-19 21:33:52 +01:00
Ginger Bill
bbc9739f5c Core library and Better name mangling for files 2016-09-19 11:51:21 +01:00
Ginger Bill
828095afd1 Better name mangler for SSA generation
TODO: Define better name mangling rules and allow for explicit name overload
2016-09-18 21:44:22 +01:00
Ginger Bill
2d6171f3e5 #import search rule: relative then core/ 2016-09-17 22:42:09 +01:00
Ginger Bill
67694c0df0 VarDecl and ConstDecl split; error, warning, et al. now global 2016-09-17 11:40:00 +01:00
Ginger Bill
eb424bb315 #import and #load
#import - imported entities will not get exported
#load   - loaded entities will get exported
2016-09-16 19:46:48 +01:00
Ginger Bill
968de5aae8 Call expression, either handle all or ignore all results. 2016-09-16 11:38:20 +01:00
Ginger Bill
807256dea4 ssa - alloca all variables at the very start 2016-09-15 18:58:29 +01:00
Ginger Bill
b6cb4f4d14 #file #line directives 2016-09-15 00:53:00 +01:00
Ginger Bill
bd365e5176 Fix namespacing issues for #import; allow using ImportName 2016-09-14 22:58:24 +01:00
Ginger Bill
79f575ae8e #import "" as namespace 2016-09-14 19:35:13 +01:00
Ginger Bill
bb109b47d6 Basic module system (only file namespacing) 2016-09-14 14:16:01 +01:00
Ginger Bill
a60e6bedd9 Begin work on modules - No codegen!!! 2016-09-14 12:00:04 +01:00
Ginger Bill
1147e17c13 Fix addressing modes for selectors 2016-09-13 23:09:46 +01:00
Ginger Bill
817ae643c5 Remove len(), cap() and replace with selectors; fix defer in match 2016-09-13 14:04:05 +01:00