a3e2b589be
added the make_charaarray instruction and pop_into_chararray insruction
hyung-hwan2024-09-15 11:51:11 +09:00
ed33ca2196
added code to support numeric named instance variables
hyung-hwan2024-09-14 14:08:33 +09:00
617ab3e753
changed decode_spec to honor the field info for a non-indexed spec instead of hardcoding it to HCL_OBJ_TYPE_OOP
hyung-hwan2024-09-13 17:09:58 +09:00
f6f475df4a
work in progress dropping the brand bits
hyung-hwan2024-09-12 18:06:12 +09:00
6e9e1d35f4
added a test on process handling. used hcl_instantiate() in making process-related objects
hyung-hwan2024-09-12 16:08:16 +09:00
8604c6ddf1
call hcl_instantiate() with hcl->c_primitive in hcl_makeprim()
hyung-hwan2024-09-12 00:26:23 +09:00
150e7386f8
attempting to support multi-binop expression by tranforming it to a chained single-binop expression
hyung-hwan2024-08-31 14:04:53 +09:00
e0e86d5463
added a test case for mutlivariable assignment to instance variables
hyung-hwan2024-08-29 19:05:21 +09:00
a93abed8a1
fixed the wrong initialization of the ivaroff field of the context object in make_context()
hyung-hwan2024-08-29 01:14:59 +09:00
b9997b7079
fixed a bug in printing the class_XXmstore instruction executed
hyung-hwan2024-08-29 00:55:32 +09:00
8597f532fa
updated the reader to transform the assignment expression to set/set-r expressions. updated the compiler to handle the assignment expression
hyung-hwan2024-08-28 00:58:56 +09:00
229d3b1f29
renamed return-from-home to revert treated return and revert as keywords
hyung-hwan2024-08-22 18:10:41 +09:00
191c123cb6
class, fun, break, continue, until, while treated as keywords
hyung-hwan2024-08-22 16:06:59 +09:00
60aac191b0
changed the compiler to treat try, catch, throw as keywords
hyung-hwan2024-08-21 22:19:41 +09:00
32f1da7d28
trying to change the compiler to treat if, elif, else as keywords added primAt, primtAtPut, HCL_SYNERR_CATCH
hyung-hwan2024-08-21 01:00:29 +09:00
7252ee5e47
updated the kernel class initialization to set the superclass
hyung-hwan2024-07-29 15:36:07 +09:00
e4a26b71be
updated initialization of the nivars_super field of kernel classes in gc.c
hyung-hwan2024-07-27 16:27:43 +09:00
b040c2c05a
reorganized the kernel class table with the index to the superclass slot for bootstrapping of initial class chains
hyung-hwan2024-07-27 01:14:51 +09:00
fb25712133
removed the nivars and ncvars fields from class
hyung-hwan2024-07-25 02:44:43 +09:00
dfc6ec94f4
updating internal class representation
hyung-hwan2024-07-23 23:50:29 +09:00
768378a940
fixed the test script - insta-02.hcl
hyung-hwan2024-07-22 23:46:38 +09:00
0e2dfea7fb
added more test-cases for class redefintion
hyung-hwan2024-07-22 18:28:21 +09:00
28c05ff903
updated compiler to prohibit redefinition of a named class
hyung-hwan2024-07-22 17:24:26 +09:00
22a066ce95
class method lookup extended to the Class class
hyung-hwan2024-07-20 00:58:55 +09:00
f216699240
enhanced the print function to print the class name for a class enahnced the compiler to handle class defintion better. updated method management routines into method dictionary
hyung-hwan2024-07-19 20:50:28 +09:00
91e1e8c9c3
added core.class_name module function
hyung-hwan2024-07-16 00:15:28 +09:00
81070919d7
fixed the issue caused in the previous comming regarding class name handling
hyung-hwan2024-07-15 23:47:51 +09:00
e1de4624fd
broken code - trying to put the name field to class
hyung-hwan2024-07-15 19:37:26 +09:00
cd67f4b337
preparing to handle instance/class variables in a new style
hyung-hwan2024-07-06 14:29:07 +09:00
6407d3c175
removed the option HCL_TRAIT_LANG_ENABLE_BLOCK, thus removing conditional codes for simplicity. changed the compiler to require a block expression as the class body
hyung-hwan2024-07-06 12:16:05 +09:00
0befaf0a97
added the name field to the class struct
hyung-hwan2024-07-06 00:47:47 +09:00
75580f5235
fixed the bug accessing the wrong context in IVAR and CVAR_M instructions
hyung-hwan2024-05-31 15:16:31 +09:00
c25f0dabdb
compiler fix to prohibit self. or super. in out-of-class method defintion nested in a normal method in a class
hyung-hwan2024-05-29 23:19:25 +09:00
b4d435a593
compiler improvement to support out-of-class class method or calss instance method definitions. pending more tests
hyung-hwan2024-05-26 23:18:26 +09:00
fdbe17729e
enhanced formatting functions to accept hcl as the first parameter in order to extend hcl_fmttobcstr() adn hcl_fmttoucstr() to handle %O and %J
hyung-hwan2024-05-14 20:52:25 +09:00