Commit Graph

62 Commits (b56eb1a707e3f8ca5e77f718a8f22d271c4eb5db)

Author SHA1 Message Date
Øyvind Skaaden b56eb1a707 Added print and destroy symbol table, start bind_names 2022-03-16 22:28:17 +01:00
Øyvind Skaaden 6b87321671 Removed helpers and moved to ir.c 2022-03-16 22:27:42 +01:00
Øyvind Skaaden 78d4161e4d Added header for helpers 2022-03-16 22:26:25 +01:00
Øyvind Skaaden b0f3da6f0d Added default scope stack size 2022-03-16 22:25:32 +01:00
Øyvind Skaaden bef1e015f6 Added scanning of global variables 2022-03-15 22:29:45 +01:00
Øyvind Skaaden fb6c35523e Added some constant values for sizes 2022-03-15 22:29:29 +01:00
Øyvind Skaaden a0c695ef66 Removed unoptimized print 2022-03-15 22:29:14 +01:00
Øyvind Skaaden 2734cdb176 fixed bug with being to aggressive
- Is now more flexible
- Added resolve constant relations
2022-03-13 20:20:35 +01:00
Øyvind Skaaden e29492f7f8 Cleaned up the ir.h 2022-03-13 20:19:53 +01:00
Øyvind Skaaden b2ba4768c6 added some constant relations 2022-03-13 20:19:39 +01:00
Øyvind Skaaden 5d866e48a0 Added a pdf from the year 21 2022-03-13 20:19:29 +01:00
Øyvind Skaaden b8255e4e93 added some comments 2022-03-12 19:32:10 +01:00
Øyvind Skaaden c45131d029 print out what relation is used 2022-03-12 19:26:50 +01:00
Øyvind Skaaden a97b6602a0 fixed bug with being to agressive 2022-03-12 19:26:35 +01:00
Øyvind Skaaden fe49453d0a added var to function call 2022-03-12 19:22:14 +01:00
Øyvind Skaaden 40c9090656 added flags to output 2022-03-12 19:22:05 +01:00
Øyvind Skaaden 94d83fc59b fixed bug where the simplify is to aggressive 2022-03-12 19:21:53 +01:00
Øyvind Skaaden a5f6aaf1fa added my own from ps3 2022-03-12 19:21:38 +01:00
Øyvind Skaaden 6856407f38 add ignore 2022-03-12 18:09:29 +01:00
Øyvind Skaaden 4717d45e30 Start PS4 2022-03-12 18:09:07 +01:00
Øyvind Skaaden 7a3af1c302 Added solution to the problem sets. 2022-03-06 17:21:38 +01:00
Øyvind Skaaden 202622c44b Added some pdfs 2022-03-06 17:13:26 +01:00
Øyvind Skaaden b06406e48a Added yylex_destroy 2022-02-27 19:15:26 +01:00
Øyvind Skaaden 6b3065fe11 removed comment 2022-02-27 19:15:12 +01:00
Øyvind Skaaden 9cd417d5da added memory freeing functions 2022-02-27 19:13:53 +01:00
Øyvind Skaaden 10515c009a Added simplifying methods
- Prune children to remove unneeded nodes
- resolve constant expressions
- Flatten lists
2022-02-27 19:10:39 +01:00
Øyvind Skaaden 8c85391fb9 Added naming back 2022-02-27 19:08:54 +01:00
Øyvind Skaaden db7087c277 Added some numbers to differentiate between the results 2022-02-27 19:08:44 +01:00
Øyvind Skaaden a701db4a19 Somewhat working 2022-02-27 16:41:57 +01:00
Øyvind Skaaden e8482f39ea Added return of node_init 2022-02-21 13:48:13 +01:00
Øyvind Skaaden fa6c6f3849 Fixed issue 2022-02-21 13:45:50 +01:00
Øyvind Skaaden e9e67d3f4a Added buildfiles 2022-02-21 12:45:11 +01:00
Øyvind Skaaden c61f68540d Init PS3 2022-02-21 12:44:43 +01:00
Øyvind Skaaden 986228c449 Added code-workspace 2022-02-21 12:44:19 +01:00
Øyvind Skaaden e9634ef6b7 Finish ps2 2022-02-21 12:41:33 +01:00
Øyvind Skaaden a70bb5d50d Changed to used macro with new function return 2022-02-18 17:10:54 +01:00
Øyvind Skaaden 32c86018dc Added return value for the node_init
- Can be used as before, but cleaner interface in parser.y
2022-02-18 17:02:44 +01:00
Øyvind Skaaden f10d6c459c Added return value for the node_init
- Can be used as before, but cleaner interface in parser.y
2022-02-18 17:01:37 +01:00
Øyvind Skaaden 42eb417939 Update gitignore 2022-02-18 17:00:12 +01:00
Øyvind Skaaden c902edccd5 Added test for groups and precedence 2022-02-14 15:30:01 +01:00
Øyvind Skaaden 525c2b1f6a Added grouping 2022-02-14 15:29:50 +01:00
Øyvind Skaaden a6b535248b Added type define 2022-02-13 19:08:34 +01:00
Øyvind Skaaden 36afeecae9 Tried fixing complaining from vscode 2022-02-13 19:04:28 +01:00
Øyvind Skaaden 35fb48f8b8 Added some more data to expression 2022-02-13 18:51:33 +01:00
Øyvind Skaaden c8e292bd0a Move comments 2022-02-13 18:37:47 +01:00
Øyvind Skaaden 23f2148948 Added noassoc to if then and else 2022-02-13 18:34:52 +01:00
Øyvind Skaaden 3640b61246 Update ignore 2022-02-13 18:34:35 +01:00
Øyvind Skaaden 720196f12d fixed ignore issue typo 2022-02-13 18:08:14 +01:00
Øyvind Skaaden f7d79724c3 Added precedence 2022-02-13 18:07:47 +01:00
Øyvind Skaaden 3a309781d3 Completed parser 2022-02-13 17:43:45 +01:00