Commit Graph

17 Commits

Author SHA1 Message Date
Nathan Braswell
aaca71a211 Got the new scoping working! Still some odd stuff happening to certian templates, and I think vector is having problems with new/traits. Really need to get canonnical filenames and what not worked out 2014-12-30 01:22:09 -05:00
Nathan Braswell
417e5ed898 Scope work progressing. Gotta fix bugs. Good save spot. 2014-12-19 18:29:33 -05:00
Nathan Braswell
5b57770774 Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc 2014-08-01 00:45:48 -07:00
Nathan Braswell
4cf8dbbd5b vector and vector test are finally working! Also found some bugs that I don't have time to fix before bed. Added file future_features.txt to keep track of bugs and features. 2014-07-28 01:52:15 -07:00
Nathan Braswell
87ad0c187e Fixed quite a few bugs, including makeing find template functions check for trait subset, not trait equality, and add the number required to the satisfied count. Based on what is now breaking, it looks like it's time to give the builtin functions types. 2014-07-23 02:23:21 -07: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
46b9fc8b7f Added ability to add commits the Kraken grammer file. Started work on class traits and else statements. 2014-07-06 23:42:25 -07:00
Nathan Braswell
03770028ad Fixed some bugs in Parser::firstSet and added a bit of caching. It still doesn't work quite right, though, there's some problem with nullable left recursion. However, it's better than it was, and I need to go to bed. More work later. 2014-06-30 01:57:50 -07:00
Nathan Braswell
12f57f8ce8 Added support for destructors! This is done by making a void, parameterless member method called destruct which is called when a stack object falls out of scope, if it exists. This is implemented by the generator, in this case CGenerator. 2014-06-28 08:31:33 -07:00
Nathan Braswell
63d9ec66e1 Added "Init Position Call" (takes the place of implicit constructors) and the this keyword! This was the structure needed for more sensable memory management. At least delete will need some updating before it becomes very usable, though. (Figuring out the types for function template instantiation) Anyway, good progress here! 2014-06-26 01:45:44 -07:00
Nathan Braswell
82d8a15de0 Added (then fixed) templates with multiple parameters for both classes and functions! 2014-06-17 00:10:57 -07:00
Nathan Braswell
7dbfd8ca38 Almost have it working, but member function lookup through a typedef doesn't quite work. (I think the problem's in CGenerator) 2014-06-10 00:53:30 -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
9bfbc7cdf6 Script to run all tests added. Prep work on new computer before fixing the remaining major template class bug. 2014-06-02 00:19:44 -07:00
Nathan Braswell
ae9e652f1e Mostly implemented Simultaneous Declaration, only template instantation during pass 2 remains to be implemented 2014-05-24 14:04:32 -04:00
Nathan Braswell
2566cbb67c Added testing! call kraken like so ./kraken --test ../path/to/test/name_of_test_without_extention This will make kraken compile and run name_of_test_without_extention.krak and compare the output it generates on stdout to name_of_test_without_extention.expected_results. If they pass, then it records the pass, if not, it records the failure and saves the intermediate files generated. It has revealed some bugs which I will fix in upcoming commits. 2014-05-20 22:21:07 -04:00