Ginger Bill
66e4aaffc5
Use semicolons as field delimiters in records
2017-07-10 13:49:50 +01:00
Ginger Bill
b201670f7a
Fix _preload.odin; Add for in without parameters; Change sync.Mutex for windows
2017-07-08 23:13:57 +01:00
Ginger Bill
bc16b290ba
Disable polymorphic overloading in the global scope
...
TODO: Figure out why it does not work in the global scope
2017-07-02 22:08:39 +01:00
Ginger Bill
94afcec757
:: style procedure declarations; remove old parsing code
2017-06-28 23:47:06 +01:00
Ginger Bill
4f28e9e1fb
Remove type prefix declarations
2017-06-28 23:23:10 +01:00
Ginger Bill
0622509807
Disable var and const declarations
2017-06-28 23:17:20 +01:00
Ginger Bill
35c102137f
Compiler compiles for x86 (doesn't work properly)
2017-06-19 18:49:11 +01:00
Ginger Bill
5427d14416
Code will compile as 32 bit but will causes errors in the linker on Windows
2017-06-19 15:55:09 +01:00
Ginger Bill
2deb2f8eeb
Declaration grouping uses () rather than {}; Fix some problem with compilation on *nix
2017-06-17 12:01:53 +01:00
Ginger Bill
6a88dc322a
Declaration grouping uses braces rather than parentheses
2017-06-13 15:04:23 +01:00
Ginger Bill
ccda456c0a
foreign blocks for procedures
2017-06-12 21:21:18 +01:00
Ginger Bill
83bad13e9e
Update default field value syntax; Use more declaration groupings
2017-06-12 18:38:27 +01:00
Ginger Bill
a8e458339b
foreign_library allow for Pascal-style grouping
2017-06-12 16:26:51 +01:00
Ginger Bill
2ab0d97573
import and import_load as keywords; Fix procedure literal call trick
2017-06-12 14:19:12 +01:00
Ginger Bill
0c05fc1432
Prefix type and let to replace immutable
2017-06-12 12:56:47 +01:00
Ginger Bill
33eeb58521
Prefix proc syntax
2017-06-12 12:34:55 +01:00
Ginger Bill
8fafdb185c
Remove := with var and :: with const
2017-06-12 11:48:12 +01:00
Mikkel Hjortshoej
8e32276283
Added a bunch of VM_* and map_virtual_key
2017-06-11 19:46:55 +02:00
Ginger Bill
f60c772c11
Make rune a basic type and not an alias; Remove byte
2017-06-06 23:54:33 +01:00
Mikkel Hjortshoej
e0b9c4a275
Added extra sys/windows.odin stuff
...
- Added PM_NOREMOVE
- Added PM_NOYIELD
- Added get_message_a
- Added post_message_a
2017-06-01 00:05:33 +02:00
Ginger Bill
826e05c96e
Convert windows.odin to the new naming convention
2017-05-28 16:08:29 +01:00
Ginger Bill
80c034ec7c
Change naming convention from Ada_Like to RustLike
...
Naming Conventions:
In general, PascalCase for types and snake_case for values
Import Name: snake_case (but prefer single word)
Types: PascalCase
Union Variants: PascalCase
Enum Values: PascalCase
Procedures: snake_case
Local Variables: snake_case
Constant Variables: SCREAMING_SNAKE_CASE
2017-05-28 14:47:11 +01:00
Ginger Bill
45eecc0905
Reimplement #ordered again
2017-05-12 10:27:14 +01:00
Mikkel Hjortshoej
c7f7e562a0
Add following win32 functions
...
- ShowCursor
- GetFileAttributesA
- FindFirstFileA
- FindNextFileA
- FindClose
Add following win32 constants
- MAX_PATH
- INVALID_FILE_ATTRIBUTES
Add following win32 structure
- Find_Data
2017-05-05 20:32:48 +02:00
Mikkel Hjortshoej
a317237404
Fix casing on FILE_ATTRIBUTE_DIRECTORY
2017-05-05 20:22:18 +02:00
Ginger Bill
cc6282a6e3
Fix alignment and size bug of enums; Remove #ordered and make the default #ordered.
2017-05-02 21:16:09 +01:00
Ginger Bill
784f3ecf7e
Syntax change: cast(T)x => T(x); union_cast(T)x => x.(T); transmute(T)x => transmute(T, x); y:=^x => y:=&x;
...
Sorry for all the code breaking in this commit :(
2017-04-30 15:09:36 +01:00
Ginger Bill
d8d22e34dd
Fix fmt for type; remove dead stuff
2017-04-13 19:29:17 +01:00
Ginger Bill
5916e71d4f
Fix slicing bug on dynamic arrays
2017-04-11 16:00:49 +01:00
Zachary Pierson
f952c7c747
Merge https://github.com/gingerBill/Odin
2017-04-03 00:08:00 -05:00
Ginger Bill
382a5ca6a2
Update and regression test old demos
2017-04-02 22:03:52 +01:00
Zac Pierson
c7bb861d3c
Merge https://github.com/gingerBill/Odin
...
"Fixed" a proc overload bug. Still needs a *real* fix.
2017-03-21 14:16:42 -05:00
Ginger Bill
32150e401e
Update gb.h
2017-03-17 12:30:59 +00:00
Ginger Bill
aaec8bf423
windows.odin TYPE_NAME to Type_Name; More SSA work and SSA printing for debugging
2017-03-12 16:42:51 +00:00
Zac Pierson
d890731716
Merge https://github.com/gingerBill/Odin
2017-03-02 15:41:19 -06:00
Ginger Bill
9e8c9be1ea
Allow pointers to append; Fix strconv stuff; new_slice allows for capacity
2017-03-02 19:24:34 +00:00
Zac Pierson
8d5896ab7e
Merge https://github.com/gingerBill/Odin
2017-02-20 10:14:52 -06:00
Ginger Bill
758dd9ba16
Fix overloading bug due to #import .; Add sys/wgl.odin
2017-02-19 11:35:33 +00:00
Ginger Bill
0c37aa9ea0
Fix overloading bug due to comparison of named types
2017-02-18 22:19:35 +00:00
Zac Pierson
aaa4dd5c36
Merge https://github.com/gingerBill/odin
2017-02-15 10:21:38 -06:00
Ginger Bill
d1f65097c4
Fix immutable rules; add some general documentation
...
immutable is still a little weird and not completely what you'd expect. Maybe just not having it is better.
2017-02-14 15:19:29 +00:00
Zachary Pierson
754b368140
Added dynamic library loading to Linux and MacOS's standard libraries.
2017-02-11 15:09:53 -06:00
Ginger Bill
4306345ff1
Dynamic array syntax [...]Type; make entities private with a prefix of _; fix extension checking
2017-02-11 17:33:23 +00:00
Ginger Bill
346aa5f71c
Only check files that have been truly imported.
2017-02-11 15:50:24 +00:00
Ginger Bill
73d6a55f5c
Remove need for type keyword
2017-02-10 16:12:14 +00:00
Ginger Bill
f18ae89931
Remove Maybe type; Enum names
2017-02-10 14:59:18 +00:00
thebirk
626f91f307
Changed #foreign user32 to gdi32 where this was wrong.
2017-01-28 23:23:02 +01:00
Ginger Bill
ce3582fd89
Remove case sensitivity for libraries on windows
2017-01-26 20:06:22 +00:00
Ginger Bill
e3e16f5d05
Library names - Only link with used foreign libraries
2017-01-26 20:00:16 +00:00
Ginger Bill
f47f25f942
Fix pointer differences (issue #11 ); remove #dll_import
2017-01-26 17:39:44 +00:00