Commit Graph

43 Commits

Author SHA1 Message Date
Ginger Bill
50301557b2 Untyped nil 2016-10-06 17:11:17 +01:00
Ginger Bill
fee504636f Code clean up of call arguments 2016-10-03 23:28:37 +01:00
Ginger Bill
f6589d9814 Refactor: Remove dead code 2016-10-02 21:45:24 +01:00
Ginger Bill
264fc1e1f3 Allow for constants of compound types 2016-10-01 00:02:00 +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
04b5d8c132 using on indexable field; Auto deref for (Index|Slice)Expr 2016-09-29 00:42:26 +01:00
Ginger Bill
6e39a42c8a Demo 004 2016-09-28 21:25:14 +01:00
Ginger Bill
5f6b0942f4 Update Standard Library; Fix Type_Info for integers 2016-09-28 00:07:03 +01:00
Ginger Bill
6088cbeddb Fix: double declaration in SSA 2016-09-27 19:47:27 +01:00
Ginger Bill
f6bbd8a4c2 Fix minimal dependency for nested entities 2016-09-27 18:12:46 +01:00
Ginger Bill
b593332942 Minimal Dependency Map: Only build what is needed 2016-09-27 15:28:44 +01:00
Ginger Bill
70f3361a34 Bug Fixes: some assertions; variable inits;
Remove some dead code
2016-09-24 22:55:17 +01:00
Ginger Bill
ff229054a1 Any order declarations at procedure scope (except variables) 2016-09-24 10:23:46 +01:00
Ginger Bill
db6abb9706 Fix returns of tuple 2016-09-23 20:40:42 +01:00
Ginger Bill
fa7d7938e1 Fix push_* with better defer system 2016-09-23 19:45:45 +01:00
Ginger Bill
a31bab5aae Unicode file loading; push_allocator & push_context 2016-09-23 14:59:58 +01:00
Ginger Bill
ee0aa7b9de Fix assert; exporting rules 2016-09-22 23:18:29 +01:00
Ginger Bill
2e506b7e6e Demo 003 2016-09-22 21:32:25 +01:00
Ginger Bill
6907951f1e Fix type info generation
The problem: entry's index != entry->value in info_type_map
But I was assuming this
2016-09-22 13:34:14 +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
31c11a5037 Sort enum entities; Remove sprint* from fmt.odin 2016-09-20 09:33:29 +01:00
Ginger Bill
59b0cf61ef fmt improvement; Minor refactoring 2016-09-19 23:59:26 +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
Ginger Bill
59fb74d2a2 Fix array bounds checking 2016-09-12 23:16:06 +01:00
Ginger Bill
d4ba6b5466 Slice and substring bounds checking 2016-09-12 15:10:15 +01:00
Ginger Bill
9ff4a8b5ab Switchable array bounds checking 2016-09-12 14:41:36 +01:00