Commit Graph

537 Commits

Author SHA1 Message Date
9c6ce5df9c changed types of some variables from hcl_oow_t to hcl_ooi_t
attempted to add the builtin printf function
2018-02-26 15:52:15 +00:00
b97e2da6af enhanced the logfmtv to handle encoding conversion of the format string 2018-02-26 15:24:45 +00:00
5f9a5bc9c6 changed a wrong function name from hcl_logoofmt to hcl_logufmt
enhanced the log formatter routine a bit
2018-02-26 10:49:31 +00:00
967aa97dc8 work in progress to implement the builtin printf function 2018-02-24 04:01:19 +00:00
0a0c0d0dc0 fixed a compiler bug that didn't check the number of arguments to a primitive function properly when no parameter was given 2018-02-24 01:28:58 +00:00
54630857b3 added some comments 2018-02-23 08:50:18 +00:00
fb66acc5a4 enhanced HCL_BRANDOF() to avoid multiple comparisons.
added the eqk? builtin primitive
removed unnecessary lines
2018-02-23 07:17:23 +00:00
75526643de got rid of hcl_getlastretv() but let hcl_execute() and hcl_executefromip() to return the returnv value 2018-02-22 12:57:31 +00:00
fa3d527bd9 changed the reader to use a stack of 4-item arrays instead of chains of 3 cons cells
cleaned up some unused code
2018-02-22 10:02:39 +00:00
a7fcf50a89 added hcl_getlastretv().
enhanced hcl_hashobj() to return hash values for nil, true, false
2018-02-22 07:41:03 +00:00
20cf176de8 added more error immunity check for the log_write callback 2018-02-22 04:44:21 +00:00
09af995779 made hcl immune to an error number/message set in the log_write callback 2018-02-22 04:35:55 +00:00
4b0d4b3ab4 enhanced pf_log to print a character without quotes.
fixed formatting specifiers in log_char_object() in prim.c
2018-02-21 13:13:25 +00:00
39bbd8a2a0 added a new debugging macro HCL_DEBUG_LEXER
removed the debugging macro HCL_DBEUG_BIGINT
2018-02-21 13:02:05 +00:00
d0a9385c74 enhanced --enable-unicode to accept ucs4 and ucs2 in addition to yes/no.
redefined the moo_uch_t type to follow the enable-unicode value
2018-02-21 10:12:47 +00:00
81fd56e34d deprecated NDEBUG and introduced HCL_BUILD_DEBUG and HCL_BUILD_RELEASE 2018-02-21 09:30:18 +00:00
345b36ded4 localized a local variable into a loop in PUT_OOCH and PUT_OOCS in logfmtv 2018-02-21 08:54:13 +00:00
b48de34ebc fixed the premature termination issue in logfmtv 2018-02-21 08:48:47 +00:00
b661dcb0f4 changed the wrong field name when HCL_OOCH_IS_BCH 2018-02-21 07:54:38 +00:00
ab8d276a9b cleaned up code a bit 2018-02-21 07:38:59 +00:00
ad0534a18e added --enable-unicode to configure.ac
cleaned up unnecessary code
2018-02-21 07:37:10 +00:00
e1bf0c6570 more error checks 2018-02-20 14:53:12 +00:00
524f938a1f changed the main loop a little bit 2018-02-20 14:10:09 +00:00
e757c7598d removed NDEBUG enclosing karatsuba_cutoff 2018-02-20 10:27:11 +00:00
2bbb4262e4 made hcl_inttooow() and hcl_oowtoint() public 2018-02-19 16:17:46 +00:00
b22d72e254 added arr.size 2018-02-19 16:14:22 +00:00
d5d661a6fb added arr.put 2018-02-19 10:03:02 +00:00
c46f319397 added linguist rules into .gitattributes 2018-02-18 16:15:49 +00:00
261e51a5c7 added the empty .gitattributes files 2018-02-18 16:15:12 +00:00
aa1312914b added the gc builtin function 2018-02-18 15:02:57 +00:00
46731890c9 Added dic.put 2018-02-17 17:01:48 +00:00
2851d9177e deleted redundant files 2018-02-17 16:50:07 +00:00
a82e3d4cf8 change dic.get to return an error code upon search failure 2018-02-17 16:45:17 +00:00
8432b45d2c deleted unneeded code 2018-02-17 16:09:44 +00:00
810803db08 added some error checks for error literals and smptr literals 2018-02-17 16:01:27 +00:00
c6e6fb497d implemented the single quote character literal.
added the error literal and the smptr literal notations and types
2018-02-17 15:42:12 +00:00
a29e4a3edc added some builtin modules, but without many functions in them 2018-02-15 15:36:15 +00:00
e62ad1e471 enhanced hcl_inttostr() to keep results in the temporary buffer when ngc is negative.
changed the integer printing function to utilize this change in print.c
2018-02-15 08:05:48 +00:00
763d8dddb2 fixed to use hcl-wide temporary buffers when converting an integer to a string 2018-02-15 06:58:36 +00:00
7ca201d1a9 added reader & compiler check to filter out special symbols when processing argument and variable names in more contexts 2018-02-15 01:39:00 +00:00
d254630b14 fixed the wrong buggy argument to hcl_decode() in main.c 2018-02-13 16:19:16 +00:00
f054f4eaae integrated bigint
cleaned up code
2018-02-13 16:10:41 +00:00
a8352ce3f5 adjusted bigint code 2018-02-13 11:48:16 +00:00
48743e6abe changed mod_test to mod_fake_test. this will eventually be removed 2018-02-13 02:30:06 +00:00
56786973a0 removed duplicate hcl_t definition 2018-02-13 02:26:37 +00:00
350359f469 added hcl_walkdic
fixed a bug of not printing the list closer properly in hcl_print().
enhanced error handling
2018-02-12 16:51:38 +00:00
8492bb8bd9 mapped a dotted identifer to a primitive function 2018-02-12 10:50:44 +00:00
0d3ef9fa34 fixed the way to drive hcl in main.c 2018-02-09 17:15:31 +00:00
2601ef0541 implemented (do ...) 2018-02-09 16:10:29 +00:00
e4906731ae implemented defun as a shortcut to (set xxxx (lambda () ..)) 2018-02-09 15:27:02 +00:00