Commit Graph

15 Commits

Author SHA1 Message Date
Nathan Braswell
602810002b reference type added and very basic pass by reference works in CGenerator. Much more work to go to make sure complicated cases work and return by reference 2015-07-14 19:32:54 -04:00
Nathan Braswell
48683889da Tons of bugfixes (lots with closures). Added safe_recursive_delete to mem which helps easily and safely delete recursive data structures, and used it in regex. It still has a leak, but it's a lot better than before. 2015-06-28 14:27:48 -04:00
Nathan Braswell
542821dd81 Ton of work on closures, getting very close. Have the extra types and the promotion and calling all worked out. Now only the actual closure part of the struct needs to be done 2015-06-25 04:09:19 -04:00
Nathan Braswell
457998e0ff Added in the cast function and fixed type promotion (so it would work with pointer arithmatic) 2015-06-19 17:13:06 -04:00
Nathan Braswell
7abab02fbf More all-rounded implementation of the new objecty features, several bugfixes, and updates to the standard library to behave. Vector still needs a bit more work for some operations 2015-06-05 00:34:24 -04:00
Nathan Braswell
911b25f78b Initial work for functions as values. Actually works, but you can't write out the type and thus can only declare function pointer variables with type inference. 2015-05-18 04:46:03 -04:00
Nathan Braswell
93a170408f Object traits working now as well. Only specilized templates don't, because I have not yet decided the syntax for them. 2014-07-20 14:21:41 -07:00
Nathan Braswell
64fcb6b0b7 Traits for function templates working! Need to finish for objects and specilizations, and I think also else statements. 2014-07-18 08:52:15 -07:00
Nathan Braswell
812d40c6db Work on fixing class templates instantiated outside of functions. Groundwork done, but it doesn't work. Doesn't break anything else either. Bedtime. 2014-06-09 00:21:38 -07:00
Nathan Braswell
39f945940d Fixed a ton of stuff with function templates. Works well now. Next up: multiple template types and fixing object definition ordering (both where templates should go and objects with other pointers) 2014-05-19 20:00:35 -04:00
Nathan Braswell
5022fc0802 Significant work on templates. They should be close to working now (for single replacement). However, they do not show up in the global scope the the C generator can't see them. Plus, their names will have to be Cified. 2014-05-09 02:56:55 -04:00
Nathan Braswell
209985310e Fixed type propagation for dereference and address-of, needs work for all the other operators also. Starting ground work for array notation 2014-05-05 13:52:12 -04:00
Nathan Braswell
57976beb40 Just got paranoid about saving all this work. Almost finished operator overloading, but everything is slightly broken right now. 2014-03-06 13:13:40 -05:00
Nathan Braswell
0297f29dcd Save state before re-write of RegEx. 2014-01-07 13:14:58 -05:00
Nathan Braswell
15674fec2a Added Type class, bettered types a bit, made address of and dereference operators work. 2013-12-23 01:26:24 -06:00