Commit Graph

108 Commits

Author SHA1 Message Date
a104f3ad5b implemented multiple return values assignment with set-r 2021-05-15 05:31:36 +00:00
e1e96e6813 enhanced compile_return() to handle 'return' differently in a function block containing return variables 2021-05-13 15:54:30 +00:00
32405a46eb some more code to support multiple return values via return variables 2021-05-13 14:43:40 +00:00
5f7dc95f40 writing code to implement return variables 2021-05-09 15:32:54 +00:00
2cd3a0cc6e enhancing the compiler to support the variable argument list with the ellipsis 2021-05-07 08:53:01 +00:00
775e5736ee fixed issues related to the new make_block, make_function instruction scheme 2021-05-06 17:44:58 +00:00
26392cc729 fixing bugs 2021-05-06 14:47:37 +00:00
a3fba2a826 updating code to handle the new make_block, make_function scheme 2021-05-06 08:14:00 +00:00
1486795f15 fixing bugs introduced for block temporaries sheme 2021-05-05 17:37:26 +00:00
2f888200e8 changed the block temporaries scheme 2021-05-05 14:37:01 +00:00
2618dad287 changing the encoding scheme to store the block temporaries 2021-05-04 09:48:19 +00:00
910d1f1917 fixed a bug in prepare_new_context() and fork handling 2021-05-01 11:26:59 +00:00
041a6c1002 added hcl_compile_flag_t 2021-04-24 13:50:51 +00:00
e95200c804 changed code for emit_indexed_variable_access() 2021-04-23 08:27:23 +00:00
f7416341b6 try-catching working in the top-level now. implemented a way to secure space for top-level temporary variables 2021-04-23 07:17:40 +00:00
60f8ac0c5f coding the compiler to handle an exception variable in the catch part 2021-04-22 09:35:26 +00:00
2478de13fa trying to implement the exception variable in catch 2021-04-22 00:00:12 +00:00
4dc1d9b584 fixed a flaw in collect_local_vardcl(). 2021-04-20 16:17:15 +00:00
b7c03b44de updated HCL_PROCESS_NAMED_INSTVARS 12 to 13 2021-04-20 13:45:22 +00:00
f72ed9f260 simplified code a bit 2021-04-18 18:02:02 +00:00
1970ffa32a fixing code to implement exception handling 2021-04-14 16:20:18 +00:00
2030410184 working on try-catch implementation 2021-04-11 15:45:01 +00:00
32401bff58 reimplementing try-catch 2021-04-11 15:08:27 +00:00
35f3393bf5 improving function block and control block handling in the compiler code 2021-04-09 08:22:40 +00:00
1ee3716f59 committing broken interim code 2021-04-09 01:23:08 +00:00
e33c79725d added a few string formatting functions 2021-03-30 05:37:00 +00:00
5dd9e62ad0 added more code to implement simple exception handling 2021-03-02 15:58:13 +00:00
4f35e08f97 added some code for throw 2021-02-28 17:00:28 +00:00
b2600c2124 removed 'return' from where it's not needed 2021-02-28 06:43:22 +00:00
61a2c8cd60 added the try_catch instruction 2021-02-22 14:56:27 +00:00
593b0ad98c enhancing the compiler to support (try ... catch ...) 2021-02-22 09:20:45 +00:00
2eb5fd7824 trivial changes 2021-02-21 16:55:45 +00:00
6e2632119d fixed some compiler bugs in processing weird if..elif..else expressions without body parts - (if true), (if false else), (if false elif true) 2021-02-18 15:48:44 +00:00
e4f5a310aa fixed some process management code 2021-02-02 23:43:12 +00:00
9d1687ea62 fixed a flaw in post_lambda() in the compiler code 2021-02-01 13:26:48 +00:00
82d0c1ccca fixed some compiler bugs 2021-02-01 13:20:46 +00:00
5149bd44b6 removed unneeded code
uniformize the naming of locptr, dbgl to dbgi
2021-02-01 03:32:09 +00:00
d3ad99a719 made enhancement to show location information for the ECALL runtime error 2021-01-29 12:39:31 +00:00
ea31979712 removed unneeded code 2021-01-29 09:41:39 +00:00
751671d849 renamed hcl_read2() and hcl_compile2() to hcl_read() and hcl_compile() respectively 2021-01-29 08:40:10 +00:00
13c64e9bf2 removed hcl_read() and hcl_compile().
in the next commit(), hcl_read2() and hcl_compile2() will get renamed to hcl_read() and hcl_compile() respectively
2021-01-29 08:35:31 +00:00
27c243b650 changing compiler code to preserve some debugging information 2021-01-27 08:47:08 +00:00
4ec9395543 enhanced the new compiler to produce working bytecodes for the #() list 2021-01-24 15:45:28 +00:00
7dd8cc2abd updated lambda/return/return-from-home compiling code in the new compiler 2021-01-21 14:59:01 +00:00
0fa279fa1c yet implementing the new compiler 2021-01-19 14:07:42 +00:00
919ab8f57e coding a better compiler 2021-01-17 17:45:39 +00:00
a42b50598a experimenting with the new reader 2021-01-15 09:12:28 +00:00
8f6afe0625 removed unneeded code 2021-01-03 17:58:57 +00:00
c193728e3f adding some work-in-progress code to store debugging information for generated byte codes 2021-01-03 13:51:23 +00:00
0ad4d378ee Added some incomplete code for process-switching 2020-10-15 12:57:05 +00:00