Ginger Bill
98dbbf11f3
Fix procedure overloading distinguishing
2017-05-28 18:51:42 +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
45dbe8d354
default: to case:; no_alias to #no_alias
2017-05-27 11:47:21 +01:00
Ginger Bill
41aa4e606b
Optional main for DLL; access struct elements by "index"
2017-05-17 21:23:52 +01:00
Ginger Bill
e025a828ca
Fix issue #66
2017-05-14 10:32:48 +01:00
Ginger Bill
87f1a62ca4
Fix alignment for normal structures to match LLVM
2017-05-10 22:51:35 +01:00
Ginger Bill
64b5afd820
Fix issue #63 for block comments not terminating at an EOF
2017-05-09 10:01:10 +01:00
Ginger Bill
3b25f924cb
Remove debug bug
2017-05-03 11:01:17 +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
99125dc743
Fix issue #51 ; begin work on atomic types
2017-04-28 11:01:46 +01:00
Ginger Bill
b78e970698
Fix issue #48 dependency issue
2017-04-26 23:51:13 +01:00
Ginger Bill
5b8be25938
fmt.String_Buffer, Fix issue #44 , Tweak overloading rules
2017-04-26 19:43:17 +01:00
Ginger Bill
c2fa79012e
Fix find_using_index_expr
2017-04-23 11:04:22 +01:00
Ginger Bill
91ed51ff5c
Continue work on custom SSA; Fix double declaration in when statements
2017-04-21 17:56:29 +01:00
Ginger Bill
0c22081e5f
Fix error printing for basic directives
2017-04-17 19:58:43 +01:00
Ginger Bill
c69df7cd3a
Exit program if there were syntax errors
2017-04-16 16:38:05 +01:00
Ginger Bill
d8d22e34dd
Fix fmt for type; remove dead stuff
2017-04-13 19:29:17 +01:00
gingerBill
0683d2b4f4
Merge pull request #33 from zangent/master
...
Base of *nix port
2017-04-09 22:01:22 +01:00
Ginger Bill
83ebb24015
Move to Raw_* types to raw.odin; Add size and align members to Type_Info
2017-04-07 14:05:28 +01:00
Zachary Pierson
f952c7c747
Merge https://github.com/gingerBill/Odin
2017-04-03 00:08:00 -05:00
Ginger Bill
8ce58573df
len, cap, make; remove .count, .capacity, new_slice
2017-04-02 18:16:45 +01:00
Zachary Pierson
ce0d874efd
Merge https://github.com/gingerBill/Odin
2017-04-02 03:29:51 -05:00
Ginger Bill
5008e2c88b
Add Quaternions: quaternion128, quaternion256
2017-04-01 22:41:23 +01:00
Ginger Bill
dc303cde21
Complex numbers: complex64 complex128
2017-04-01 12:07:41 +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
c26990c22d
Multiple type cases for match in
2017-03-19 20:55:39 +00:00
Ginger Bill
5562364a98
Add branch labels for loops; using list
2017-03-19 16:59:11 +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
Ginger Bill
5adfbec847
Refactoring of code: remove make prefix on many procedures
2017-03-05 15:03:01 +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
561c583b3f
Merge https://github.com/gingerBill/Odin
2017-02-22 10:57:30 -06:00
Ginger Bill
047c0e4bcc
A decent union type with common fields and variants
2017-02-21 21:21:54 +00:00
Zac Pierson
8d5896ab7e
Merge https://github.com/gingerBill/Odin
2017-02-20 10:14:52 -06:00
Ginger Bill
6fdcbefe5d
Unexported struct fields
2017-02-19 12:38:49 +00:00
Ginger Bill
3cec2550d9
delete for maps
2017-02-19 11:50:42 +00: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
71100ed427
Ternary expression (removed if and block expression)
2017-02-14 19:26:32 +00:00
Ginger Bill
8b5e3428a1
Optional ok for union_cast (similar to map indices)
2017-02-14 16:37:24 +00: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
Ginger Bill
74d15ab84b
Reimplement immutable with different rules.
2017-02-14 12:35:50 +00:00
Zachary Pierson
320c22e08a
Merge https://github.com/gingerBill/Odin
2017-02-12 16:04:13 -06:00
Ginger Bill
bd27c24fab
Use a global to store the build context information
2017-02-12 21:27:13 +00:00
Ginger Bill
b9ed546ce0
Record type field names
2017-02-12 11:31:04 +00:00
Zachary Pierson
c50aabd916
Merging from gingerBill's master
2017-02-11 23:35:07 -06:00
Ginger Bill
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
Removed:
* Maybe/option types
* immutable variables
* Remove `type` keyword and other "reserved" keywords
* `compile_assert` and `assert`return the value of the condition for semantic reasons
Changed:
* thread_local -> #thread_local
* #include -> #load
* Files only get checked if they are actually used
* match x in y {} // For type match statements
* Version numbering now starts from 0.1.0 and uses the convention:
- major.minor.patch
Fixes:
* Many fmt.* fixes
To come very Soon™:
* Linux and OS X builds (unofficial ones do exist already)
2017-02-11 21:20:57 +00:00
Zachary Pierson
a49e888ce6
Merge https://github.com/gingerBill/Odin
2017-02-11 13:48:16 -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