Commit Graph

353 Commits

Author SHA1 Message Date
Devine Lu Linvega bd6a194e24 Clean only required registers 2024-04-24 15:46:27 -07:00
Devine Lu Linvega 5ab8e10a6b Housekeeping 2024-04-24 15:34:11 -07:00
Devine Lu Linvega 399ac8dd17 Do no allocate empty cells in dict 2024-04-24 15:17:57 -07:00
Devine Lu Linvega ca76fdd9c3 Removed temporary pointers 2024-04-24 15:08:09 -07:00
Devine Lu Linvega 3f5e099051 Merged right hand side of compiler 2024-04-24 15:01:47 -07:00
Devine Lu Linvega 3dbb23319e Break out of compilation early 2024-04-24 14:54:40 -07:00
Devine Lu Linvega dfe9b076dc Merged rule compilation for left side 2024-04-24 14:31:17 -07:00
Devine Lu Linvega 97d406c3a8 Progress on rules compilation 2024-04-24 14:22:23 -07:00
Devine Lu Linvega 53ef87a4b9 Inlined parse_frag 2024-04-24 14:03:14 -07:00
Devine Lu Linvega 9d4d20e542 Housekeeping 2024-04-24 13:49:21 -07:00
Devine Lu Linvega bcbfe02783 Progress in merging parsers 2024-04-24 13:45:08 -07:00
Devine Lu Linvega 23ec4856e0 Road to merging frag parsing and rule compilation 2024-04-24 13:41:09 -07:00
Devine Lu Linvega 76fe5830be Abstracted reg lookup 2024-04-24 13:35:12 -07:00
Devine Lu Linvega 986a1b47dd Only get reg id once 2024-04-24 11:20:34 -07:00
Devine Lu Linvega 3136ae834f Walk over incompiled registers 2024-04-24 11:18:06 -07:00
Devine Lu Linvega 4535c11017 Limit matches queries 2024-04-24 11:12:57 -07:00
Devine Lu Linvega c63021cf03 Houeskeeping 2024-04-24 10:39:14 -07:00
Devine Lu Linvega b866c69776 Compile rules 2024-04-24 10:31:46 -07:00
Devine Lu Linvega c73b9f0ad7 Housekeeping 2024-04-23 20:20:31 -07:00
Devine Lu Linvega 8bb661ced0 Converted regs array to stack 2024-04-23 19:36:49 -07:00
Sebastian LaVine f18adb503d Replace io_repl.modal with an actual Modal REPL 2024-04-23 14:09:24 -07:00
Devine Lu Linvega 3c85bbd3b8 Exploding empty list -> identity 2024-04-23 13:51:25 -07:00
Devine Lu Linvega 14ce4eb176 Added tests 2024-04-23 13:45:03 -07:00
Devine Lu Linvega c7aad6e21e New tests 2024-04-23 13:29:30 -07:00
Devine Lu Linvega 083538ada8 Some tests are failing, but nothing to worry about for now 2024-04-23 10:29:51 -07:00
Devine Lu Linvega a111783887 Fixed bug with counting parens 2024-04-23 09:35:58 -07:00
Devine Lu Linvega 1ed120f569 Added more whitespace tests 2024-04-23 08:37:40 -07:00
Devine Lu Linvega bb58d295fd Added tests for whitespace 2024-04-23 08:21:35 -07:00
Devine Lu Linvega 95d8bf3d8e Special registers that are non-emitting should erase themselves 2024-04-22 21:37:40 -07:00
Devine Lu Linvega 157d1909ea Added comments 2024-04-22 20:50:39 -07:00
Devine Lu Linvega 91150500dd Removed unecessary assign 2024-04-22 20:32:42 -07:00
Devine Lu Linvega b67cf12f60 Use switch case for special registers 2024-04-22 20:22:54 -07:00
Devine Lu Linvega f7e0e74888 Moved lambda from rules[0] to its own memory 2024-04-22 20:15:33 -07:00
Devine Lu Linvega 701d2c43a5 Do not continue after lambda rewrite 2024-04-22 20:13:19 -07:00
Devine Lu Linvega ba48cfffa6 Rewind 2024-04-22 20:08:29 -07:00
Devine Lu Linvega 9c95b4567b Return lambda to its own memory 2024-04-22 18:02:27 -07:00
Devine Lu Linvega 7a27c2ca5b Housekeeping 2024-04-22 17:54:17 -07:00
Devine Lu Linvega 9b034eac95 Merged all regs needing functions 2024-04-22 17:43:35 -07:00
Devine Lu Linvega 4fce0e83e5 Abstracted match/write rule 2024-04-22 17:39:39 -07:00
Devine Lu Linvega 8e7bbb51d7 Store lambda in rules[0] 2024-04-22 17:27:34 -07:00
Devine Lu Linvega e153eb797b Print unused rules 2024-04-22 15:29:54 -07:00
Devine Lu Linvega 6fb9f96b0c Oups 2024-04-22 10:10:55 -07:00
Devine Lu Linvega aa0cc80455 Inlined set_reg 2024-04-22 09:54:41 -07:00
Devine Lu Linvega 94d9ecfa72 Renamed shirt.modal to postcard.modal 2024-04-21 19:34:43 -07:00
Devine Lu Linvega 150d0ff032 Improved init for sierpinski 2024-04-21 18:06:08 -07:00
Devine Lu Linvega 0be295a237 Added sierpinski to examples/ 2024-04-21 16:47:27 -07:00
Devine Lu Linvega ed5c0763e2 Warn on imbalance 2024-04-21 09:46:53 -07:00
Devine Lu Linvega 111e143d2f Added tests 2024-04-21 09:43:00 -07:00
Devine Lu Linvega 05e620bac5 Inlined create_rule 2024-04-21 09:24:05 -07:00
Devine Lu Linvega 73e9ebcfdd Only check for register value once 2024-04-21 09:13:30 -07:00