Commit Graph

  • 6fdcbefe5d Unexported struct fields Ginger Bill 2017-02-19 12:38:49 +00:00
  • 3cec2550d9 delete for maps Ginger Bill 2017-02-19 11:50:42 +00:00
  • 758dd9ba16 Fix overloading bug due to #import .; Add sys/wgl.odin Ginger Bill 2017-02-19 11:35:33 +00:00
  • 0c37aa9ea0 Fix overloading bug due to comparison of named types Ginger Bill 2017-02-18 22:19:35 +00:00
  • 9ff474f387 Named return values but do not affect other declarations Ginger Bill 2017-02-18 12:02:11 +00:00
  • d2f9d20833 Change ternary expression precedence Ginger Bill 2017-02-18 10:41:48 +00:00
  • 802b1a70f8 Fixed an error in function naming in os_linux Zac Pierson 2017-02-15 11:20:11 -06:00
  • aaa4dd5c36 Merge https://github.com/gingerBill/odin Zac Pierson 2017-02-15 10:21:38 -06:00
  • 71100ed427 Ternary expression (removed if and block expression) Ginger Bill 2017-02-14 19:26:32 +00:00
  • 3ecf3505fd Ignore previous silly commit :P I shouldn't have move it Ginger Bill 2017-02-14 17:34:02 +00:00
  • daa1cd55a1 Move error handling for casting Ginger Bill 2017-02-14 17:33:11 +00:00
  • 2722de65b7 Prevent cast on pointer to union types Ginger Bill 2017-02-14 17:24:56 +00:00
  • 8b5e3428a1 Optional ok for union_cast (similar to map indices) Ginger Bill 2017-02-14 16:37:24 +00:00
  • d1f65097c4 Fix immutable rules; add some general documentation Ginger Bill 2017-02-14 15:19:29 +00:00
  • 74d15ab84b Reimplement immutable with different rules. Ginger Bill 2017-02-14 12:35:50 +00:00
  • 763cd2649d Fix index assignment rules for indirection Ginger Bill 2017-02-14 12:21:02 +00:00
  • 9d19ee7e4c Changed standard libraries for MacOS and Linux to be closer to os_windows. Zachary Pierson 2017-02-12 18:25:58 -06:00
  • 8df3175f10 Updated Linux standard library to convert c strs Zachary Pierson 2017-02-12 17:22:27 -06:00
  • ebb10e5597 One of the warning flags was misspelled. Oops! Zachary Pierson 2017-02-12 16:09:21 -06:00
  • 047f883078 Updated warning removal list, and made system_exec_command_line_app in main.c return the exit code. Zachary Pierson 2017-02-12 16:08:09 -06:00
  • 320c22e08a Merge https://github.com/gingerBill/Odin Zachary Pierson 2017-02-12 16:04:13 -06:00
  • bd27c24fab Use a global to store the build context information Ginger Bill 2017-02-12 21:27:13 +00:00
  • 282f8bb06f Fix issue #23 Ginger Bill 2017-02-12 11:41:06 +00:00
  • b9ed546ce0 Record type field names Ginger Bill 2017-02-12 11:31:04 +00:00
  • a9398bf30f Tested MacOS. If a commit doesn't follow in 15 minutes, Linux works too! Zachary Pierson 2017-02-12 00:21:25 -06:00
  • 7829421085 Fixed Windows (updated gb.h) | Need to test on MacOS and Linux now! Zachary Pierson 2017-02-11 23:52:56 -06:00
  • c50aabd916 Merging from gingerBill's master Zachary Pierson 2017-02-11 23:35:07 -06:00
  • 3f3122bccc Temporary fix for an Odin bug. Zachary Pierson 2017-02-11 18:54:54 -06:00
  • fc1a006de1 Added support for reading files on MacOS and Linux Zachary Pierson 2017-02-11 17:24:47 -06:00
  • e1fdd675ce v0.1.0 Added: * Dynamic Arrays [...]Type * Dynamic Maps map[Key]Value * Dynamic array and map literals * Custom struct alignemnt struct #align 8 { bar: i8 } * Allow _ in numbers * Variadic append * fmt.sprint* * Entities prefixes with an underscore do not get exported on imports * Overloaded free for pointers, slices, strings, dynamic arrays, and dynamic maps * enum types have an implict names field, a []string of all the names in that enum v0.1.0 Ginger Bill 2017-02-11 21:20:57 +00:00
  • 754b368140 Added dynamic library loading to Linux and MacOS's standard libraries. Zachary Pierson 2017-02-11 15:09:53 -06:00
  • a49e888ce6 Merge https://github.com/gingerBill/Odin Zachary Pierson 2017-02-11 13:48:16 -06:00
  • 4306345ff1 Dynamic array syntax [...]Type; make entities private with a prefix of _; fix extension checking Ginger Bill 2017-02-11 17:33:23 +00:00
  • 346aa5f71c Only check files that have been truly imported. Ginger Bill 2017-02-11 15:50:24 +00:00
  • 99c663d9f3 Questioning whether MacOS libraries should be .dylib or .so Zac Pierson 2017-02-11 01:10:03 -06:00
  • afac95e092 Oh, I left math.odin open when I merged gingerBill's changes. Oops. Updated to his version. Zachary Pierson 2017-02-11 00:33:12 -06:00
  • 05486f9fa3 I'm not sure what I changed here, to be honest. I've ctrl-z'd everything, but git's still complaining. Zachary Pierson 2017-02-11 00:30:04 -06:00
  • cad46ae51c Merge https://github.com/gingerBill/Odin Zachary Pierson 2017-02-10 23:41:23 -06:00
  • 3424b2badd Added ability to use -framework on MacOS Zachary Pierson 2017-02-10 23:33:30 -06:00
  • 73d6a55f5c Remove need for type keyword Ginger Bill 2017-02-10 16:12:14 +00:00
  • f18ae89931 Remove Maybe type; Enum names Ginger Bill 2017-02-10 14:59:18 +00:00
  • 3445a28c4a Code quality upkeep. Fixed a broken thread finding assembly instruction in gb.h Zachary Pierson 2017-02-09 01:40:45 -06:00
  • 7f6b83d50c Fixed gb.h - the file handle for /proc/cpuinfo is needed to read chars. Zac Pierson 2017-02-08 11:59:54 -06:00
  • 72d4bfb32a Merge https://github.com/gingerBill/Odin Zac Pierson 2017-02-08 11:50:33 -06:00
  • 37f7630a9e Updated README.md to reflect Linux's dependancy on clang for now. Zachary Pierson 2017-02-07 23:33:36 -06:00
  • 73c5c5d5d3 Linker on MacOS and GNU/Linux now includes foreign_system_libraries. Fixed foreign_system_library not respecting 'when' condition. Zachary Pierson 2017-02-07 23:21:52 -06:00
  • 584869730a Linux can build now! Woo! Zac Pierson 2017-02-07 15:07:20 -06:00
  • 90ab448bca Modified the test program to see where the compiler inserted the code. Zachary Pierson 2017-02-07 12:26:15 -06:00
  • 454d0b5cf5 Fix global maps and initialize the preload types before Ginger Bill 2017-02-07 18:13:37 +00:00
  • 8becbdc1b2 Added a very basic Linux standard library shamelessly stolen from the MacOS one. Made Linux (almost) work. The generated binaries segfault, but it's so close I can almost taste it. Zachary Pierson 2017-02-07 00:28:21 -06:00
  • eeeb90c441 MacOS is able to run Hello World! Zachary Pierson 2017-02-06 21:47:58 -06:00
  • 219ca0ac46 Map type info and fmt printing Ginger Bill 2017-02-07 00:10:58 +00:00
  • 5796c41357 map immutable fields: count, capacity, allocator Ginger Bill 2017-02-06 22:53:48 +00:00
  • 8cfae17535 map literals Ginger Bill 2017-02-06 22:19:32 +00:00
  • 6efd400c98 Updated build script in an attempt to track down a segfault. It's not helping, though. Zac Pierson 2017-02-06 15:45:51 -06:00
  • df78b8ad3e Make checking map key exists optional Ginger Bill 2017-02-06 21:31:27 +00:00
  • f11d73ffaa map string keys and for iterator Ginger Bill 2017-02-06 20:54:51 +00:00
  • c126339090 dynamic map insertion and lookup Ginger Bill 2017-02-06 20:23:51 +00:00
  • 5cfa4ba580 Added Linux functions throughout the code, but it segfaults. Zac Pierson 2017-02-06 12:26:41 -06:00
  • 9f2d9b596d Nearly implement dynamics map, missing insertion Ginger Bill 2017-02-06 01:21:23 +00:00
  • 00c7489157 Begin writing dynamic map procs and fix using bug in IR Ginger Bill 2017-02-05 23:52:01 +00:00
  • b1562edccf Add types.odin; Begin work on map Ginger Bill 2017-02-05 18:17:55 +00:00
  • 2a5b674d33 Custom struct alignment Ginger Bill 2017-02-05 15:19:30 +00:00
  • 7944b7714f Add build guards around compiling part of the code. Ginger Bill 2017-02-01 21:00:32 +00:00
  • 205f4664f8 Update code from OSX merge to be consistent with the rest of the code Remove some dead code whilst I was here too :P Ginger Bill 2017-02-01 20:59:14 +00:00
  • c6133587d1 Merge pull request #16 from zhiayang/master gingerBill 2017-02-01 20:31:57 +00:00
  • 5516e80ab7 Merge branch 'master' of https://github.com/zhiayang/Odin zhiayang 2017-02-02 04:21:42 +08:00
  • 864310e3da oh boy, basic osx/unix support zhiayang 2017-02-02 04:20:33 +08:00
  • 4e7082a68d Change internals of context; Disable immutable Ginger Bill 2017-02-01 17:52:55 +00:00
  • 502e63b9c5 Remove dead code Ginger Bill 2017-01-30 23:10:44 +00:00
  • 34150385d8 Change vector memory layout and operations; for in vector. Ginger Bill 2017-01-30 22:31:34 +00:00
  • 0ca1b4612c Allow _ in floats Ginger Bill 2017-01-29 23:13:50 +00:00
  • 9e143a38ce sprint*, variadic append works correctly now. Ginger Bill 2017-01-29 21:29:10 +00:00
  • 43be91bca3 Variadic append Ginger Bill 2017-01-29 20:48:08 +00:00
  • 984e36a151 Dynamic arrays Ginger Bill 2017-01-29 20:15:16 +00:00
  • ec9c8fb8a4 Update README.md v0.0.6b Ginger Bill 2017-01-29 14:45:12 +00:00
  • 3e79ec4aef Fix untyped to any assignments. Fixed crash when arguments with no value are passed Ginger Bill 2017-01-29 14:27:55 +00:00
  • 3e257ef8d0 Merge pull request #12 from thebirk/windows-odin-correction gingerBill 2017-01-28 23:25:55 +00:00
  • 626f91f307 Changed #foreign user32 to gdi32 where this was wrong. thebirk 2017-01-28 23:23:02 +01:00
  • e86c990b75 Overloaded free; 3 dotted ellipsis v0.0.6a Ginger Bill 2017-01-28 20:16:18 +00:00
  • 31aacd5bf4 Fix parsing for block/if expression within if/for/etc. statements v0.0.6 Ginger Bill 2017-01-27 23:02:55 +00:00
  • 92453369c5 Remove while loop and readd c-style for loops i.e. all loops are just for Ginger Bill 2017-01-27 17:43:42 +00:00
  • 832009f33a in keyword for for and match type Ginger Bill 2017-01-27 16:34:58 +00:00
  • d3d3bfd455 Fix utf8 stuff, Allow _ in numbers, Begin writing next demo code. Ginger Bill 2017-01-27 12:43:01 +00:00
  • ce3582fd89 Remove case sensitivity for libraries on windows Ginger Bill 2017-01-26 20:06:22 +00:00
  • e3e16f5d05 Library names - Only link with used foreign libraries Ginger Bill 2017-01-26 20:00:16 +00:00
  • f47f25f942 Fix pointer differences (issue #11); remove #dll_import Ginger Bill 2017-01-26 17:39:44 +00:00
  • e85458919c Basic float printing Ginger Bill 2017-01-26 15:38:35 +00:00
  • b59a052e32 Change casting syntax: cast(T)x transmute(T)x et al. Ginger Bill 2017-01-25 19:19:25 +00:00
  • 12498b2d39 Fix issue #8 - https://github.com/gingerBill/Odin/issues/8 Ginger Bill 2017-01-20 11:23:46 +00:00
  • 6d93aa429f Fix issue #10 Ginger Bill 2017-01-20 00:21:40 +00:00
  • 3f023509a7 using immutable thread_local on variable declarations Ginger Bill 2017-01-19 20:03:10 +00:00
  • 563b1e2b28 immutable field prefix Ginger Bill 2017-01-19 19:02:44 +00:00
  • 4603d2525e Closed range ... (both inclusive); Type comparisons with == and != Ginger Bill 2017-01-19 11:29:15 +00:00
  • 2af9fb79dc Change cast syntax, int(x), []byte(s), (^int)(p) Ginger Bill 2017-01-17 23:36:07 +00:00
  • 367d307dc4 Fix conversion of untyped integers to pointers Ginger Bill 2017-01-17 20:27:14 +00:00
  • cb59c1cf08 Comma for all field separators; Overloaded procedures follow exportation rules Ginger Bill 2017-01-17 18:47:38 +00:00
  • 383f5b55ad Best viable overloading procedure algorithm; no_alias; call expr style casts Ginger Bill 2017-01-17 15:20:11 +00:00
  • 6dc6b6f8aa Err on ambiguous overloaded calls Ginger Bill 2017-01-15 20:43:28 +00:00
  • ac736aa4ec Procedure overloading Ginger Bill 2017-01-15 19:55:04 +00:00