Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-10-09 | Fix func/proc calls with 0 args parse correctly | Tucker Evans | |
2019-10-09 | Add Stack save/load routines | Tucker Evans | |
2019-10-09 | Update check files | Tucker Evans | |
2019-10-09 | Add PCALL generation code | Tucker Evans | |
2019-10-09 | Add gen_argument to push args in the correct order | Tucker Evans | |
2019-10-09 | Fix scope offsets | Tucker Evans | |
2019-10-09 | Fix changes mov to movq | Tucker Evans | |
2019-10-09 | Fix GAS assembly comments | Tucker Evans | |
2019-10-09 | Fix function argument offsets | Tucker Evans | |
2019-10-08 | Add macro to control generation of code | Tucker Evans | |
2019-10-08 | Fix change tree type when parsing func/proc for clarity | Tucker Evans | |
2019-10-08 | Fix function args with constants pass type checking | Tucker Evans | |
2019-10-08 | Fix makefile headers now included for pc.y and pc.l | Tucker Evans | |
2019-10-08 | Add error message for reals code generation | Tucker Evans | |
2019-10-08 | Add statements markers in assembly | Tucker Evans | |
2019-10-08 | Add assignment code generation | Tucker Evans | |
2019-10-08 | Fix gen_label/gen_expr for right leafs | Tucker Evans | |
2019-10-08 | Fix enter/leave function setup (stack frames) | Tucker Evans | |
2019-10-08 | Add scope based stack offsets for variables | Tucker Evans | |
2019-10-08 | Add write function assembly | Tucker Evans | |
2019-10-08 | Fix register names are lowercase | Tucker Evans | |
2019-10-07 | Add base of gen_expr | Tucker Evans | |
Case 4 not implemented yet, should be sufficient for basic testing though. | |||
2019-10-07 | Add register stack | Tucker Evans | |
2019-10-07 | Add debug prints for all gen_statements | Tucker Evans | |
To check order of statements generated | |||
2019-10-07 | Add generate statement code in correct order | Tucker Evans | |
2019-10-07 | Fix io declarations, can be empty | Tucker Evans | |
2019-10-06 | Add gen_statement base code to code generation | Tucker Evans | |
2019-10-06 | Fix gen code gets name of function being created for labeling | Tucker Evans | |
2019-10-06 | Add call gen_code from parser | Tucker Evans | |
2019-10-06 | Add gen_code src files, with gen_label func implemented | Tucker Evans | |
2019-10-06 | Update makefile for gen_code files | Tucker Evans | |
2019-10-06 | Add label in parse tree for code generation | Tucker Evans | |
2019-10-06 | Fix tree_print | Tucker Evans | |
Tree-print now shows "branches" of tree for readability Now tests if t is null and returns rather then testing t is not null and then printing the node, this allows for less indentation in the code. | |||
2019-10-06 | Fix input/output to correct function names | Tucker Evans | |
input/output created write/read respectively fixed to read/write. | |||
2019-10-04 | Update makefile gcc shows all errors | Tucker Evans | |
2019-10-04 | Fix free string: program name | Tucker Evans | |
2019-10-04 | Fix make sure argv pointer is initialized to NULL | Tucker Evans | |
2019-10-04 | Fix func_info members initialized after malloc | Tucker Evans | |
2019-10-02 | Fix function recursion | Tucker Evans | |
Function were blocked from calling themselves because they could not look outside their scope. Functions are now duplicated to their scope to allow for recursion. | |||
2019-09-30 | Fix search now uses scope->ret_var | Tucker Evans | |
Allows for the scope to contain the function without having to worry about multiple nodes with the same name. | |||
2019-09-30 | Add check that function returns value | Tucker Evans | |
2019-09-30 | Fix check_exists checks safe scopes not just current | Tucker Evans | |
2019-09-30 | Add more of Tino's tests | Tucker Evans | |
2019-09-30 | Fix comments | Tucker Evans | |
Comments required only whitespace before them. | |||
2019-09-29 | Add check for read/write function in check_call | Tucker Evans | |
Read/write should take arguments of any type, almost funcition overloading, at this point theses are the only fuctions to do this and as such a special case is added to check_call. | |||
2019-09-29 | Fix invalid freeing of read/write functions | Tucker Evans | |
Function names must be strdup from constants so the strings can later be freed when the scope is popped. | |||
2019-09-29 | Add io functions to base scope | Tucker Evans | |
2019-09-29 | Merge branch 'master' of git.tuckerevans.com:/srv/git/private/pascal_compiler | Tucker Evans | |
Fix white space at end of lines in Testing files | |||
2019-09-29 | Add notes on location of frees | Tucker Evans | |
2019-09-29 | Fix print tree only if DEBUG is set | Tucker Evans | |