Commit Graph

707 Commits

Author SHA1 Message Date
gingerBill
fcc8b89e6b Fix issue #130; allow conversion from any pointer to uintptr and vice versa 2017-11-02 22:34:09 +00:00
gingerBill
414486829a Add string_set.cpp; Code clean up 2017-10-30 20:26:05 +00:00
gingerBill
3e05be8eb8 @(default_calling_convention = ...) for foreign blocks 2017-10-29 18:09:05 +00:00
gingerBill
ae24a8e5ae Fix pointer arithmetic; remove suffix #tags for proc types 2017-10-29 17:00:54 +00:00
gingerBill
d2588f9d1d Infix proc calling convention proc "std" (...) 2017-10-29 16:44:44 +00:00
gingerBill
1eb9994d88 Attributes; @(link_name="foo") 2017-10-29 15:46:23 +00:00
gingerBill
a43b89f36e #alias type declarations; core library additions; _global import name for the global scope 2017-10-29 11:35:21 +00:00
gingerBill
0ed34af19d Fix importation of empty file (issue #128) 2017-10-18 22:52:42 +01:00
gingerBill
71729c2855 Add anonymous using import names with an underscore (#127)
`using import _ "foo.odin"`
2017-10-18 22:29:14 +01:00
gingerBill
6c8c430c2a Fix enum iteration (issue #126) 2017-10-18 22:26:04 +01:00
gingerBill
57b97ad0bd Fix issue #124 2017-10-15 23:30:55 +01:00
gingerBill
56f7a859df Refactor code to remove entity flag for export 2017-10-15 16:16:16 +01:00
gingerBill
e5e14b9947 Remove name mangling for foreign export variables 2017-10-15 16:11:34 +01:00
gingerBill
3d8bf36a30 foreign export block
```
foreign export {
    my_i32: i32;
    my_foo :: proc() -> i32 {
        return 123;
    }
}
```
2017-10-15 16:05:42 +01:00
gingerBill
85f7c2d040 Change foreign_library to foreign import 2017-10-15 15:21:56 +01:00
gingerBill
26ea8f6dcb Syntax: Replace foreign_system_library "kernel.lib" to foreign_library "system:kernel.lib"; Remove keyword: foreign_system_library 2017-10-15 12:11:33 +01:00
gingerBill
e05fe1837d Fix minimal dependency generation for polymorphic structs (related to issue #121) 2017-10-15 11:21:48 +01:00
gingerBill
94762b56f6 Fix issue #122 2017-10-15 10:14:17 +01:00
gingerBill
b3b688fa50 Fix issue #123 2017-10-15 10:09:50 +01:00
Ginger Bill
26d3c54aff Fix issue #119
This may need better error messages
2017-10-12 20:52:19 +01:00
Ginger Bill
349a62121c Fix issue #120 2017-10-12 20:32:44 +01:00
Ginger Bill
bbb0e14633 Fix using import to work correctly 2017-10-12 20:28:32 +01:00
Ginger Bill
b772ad7094 Fix issue #116 2017-10-09 17:58:12 +01:00
Ginger Bill
444d366c39 Fix issue #115 2017-10-09 17:56:26 +01:00
Ginger Bill
8e4233b86a Correct union size 2017-10-08 15:19:01 +01:00
Ginger Bill
6424966b7a Union tag stored as an integer 2017-10-08 15:16:13 +01:00
Ginger Bill
4e42d7df43 Minor code reorganization 2017-10-08 12:27:03 +01:00
Ginger Bill
580ee5cc4a Fix using on import names 2017-10-08 11:08:15 +01:00
Ginger Bill
56a98a483f Better error messages for import cycles 2017-10-08 10:58:16 +01:00
Ginger Bill
df7a4eda8a Allow for cyclic import but disallow cyclic using import and export 2017-10-07 11:37:43 +01:00
Ginger Bill
01d8aea4df Disallow procedures literals as default values in anonymous struct types 2017-10-01 21:44:55 +01:00
Ginger Bill
ee904060c5 Disallow anonymous structs with procedures as default values 2017-10-01 21:22:39 +01:00
Ginger Bill
afb5538e83 Default procedure values for proc 2017-10-01 20:27:02 +01:00
Ginger Bill
1f24f105cc "Constant" procedure values for default values in structs 2017-10-01 20:10:13 +01:00
Ginger Bill
8f39ebbe5a Procedure literals for default values in structs 2017-10-01 20:01:00 +01:00
Ginger Bill
c1e720a49b match to switch; Optional semicolons after "import" statements 2017-10-01 17:09:57 +01:00
Ginger Bill
f38c8875b2 Fix issue #104 2017-10-01 14:29:54 +01:00
Ginger Bill
e7e51f53ce Fix cyclic polymorphic struct bug #111 2017-10-01 14:10:31 +01:00
Ginger Bill
5259de5872 Reserve the link_name main 2017-09-30 11:28:17 +01:00
Ginger Bill
e2b9c87aa8 Wrap entry point main around the C style main in the IR 2017-09-30 11:20:35 +01:00
Ginger Bill
8c7cf0dbb0 Fix union array bug (Issue #112) 2017-09-29 21:35:59 +01:00
Ginger Bill
11614c2649 Fix old_demos; Fix when bug; Fix enum .names 2017-09-29 21:11:16 +01:00
Ginger Bill
793bc8c585 Fix issue #89 2017-09-25 23:08:22 +01:00
Ginger Bill
335e88b738 Fix issue #106 2017-09-25 23:06:04 +01:00
Ginger Bill
b77ea94976 Fix issue #108 2017-09-25 22:59:59 +01:00
Ginger Bill
ae17a51c0d Fix issue #109 2017-09-25 22:53:59 +01:00
Mikkel Hjortshoej
67ac551a2f The position that the invalid token was found at is printed 2017-09-25 21:42:23 +02:00
Ginger Bill
572ac616c1 Prevent statements after branch statements. 2017-09-24 14:58:15 +01:00
Ginger Bill
96bf6a5bcb Fix cyclic importation error printing 2017-09-23 20:47:02 +01:00
Ginger Bill
c43d66c286 Use comma for struct field separators (disallow nesting) 2017-09-21 23:18:28 +01:00