Commit Graph

54 Commits

Author SHA1 Message Date
5e4b36bbe4 added more experimental code for the cli mode 2018-08-06 10:41:38 +00:00
aa745d21fd fixed many bugs in cli mode reader 2018-08-05 18:46:54 +00:00
46344a78aa enhanced the cli-mode reader a bit 2018-08-04 00:59:35 +00:00
a2d4d37d2e add a bit of code into the cli mode reader 2018-07-31 15:51:16 +00:00
da36b2deab hmm.. just a few lines of cli mode code 2018-07-30 15:37:03 +00:00
58e5f94ddf added more code to read_object_in_cli_mode() 2018-07-29 08:01:43 +00:00
81e1a64966 started adding an new experimental reader 2018-07-29 07:27:10 +00:00
0f92c54f28 added hcl_getsynerrnum() and enhanced EOF handling 2018-07-28 04:08:09 +00:00
1f25d5c7ff add some json parsing code 2018-04-22 18:18:45 +00:00
b7f6c61e5a touched up an error message shown for an invalid hashed literal encountered whose first character after # is invalid 2018-04-10 10:10:50 +00:00
fd3a812cf7 renamed some function names for naming consistency 2018-04-07 15:54:16 +00:00
39da3d47fb set salit.size to 0 forcibly in get_symbol_array_literal() 2018-04-07 15:09:02 +00:00
1df93d0be6 fixed an error handling issue in get_symbol_array_literal() 2018-04-07 06:28:54 +00:00
d5942d9096 changed hcl_seterrxxx() functions not to set the errnum field again for failures in internal operations, especially in hcl_convxxx() 2018-04-06 14:59:44 +00:00
c8fd7b1c60 changed hcl_seterrxxx() functions 2018-04-06 14:37:40 +00:00
65be1f4daa changed notation from #{} to #() 2018-04-06 14:21:47 +00:00
2242dc9761 changed hcl to be more json friendly including changing various notations and grammars 2018-04-06 08:33:25 +00:00
012d9ef678 enhanced the multiplication function to truncate the resulting fixed-point decimal to the equal precision to the operands 2018-03-30 18:11:11 +00:00
11c464fde4 disallowed fixed point decimal literal with no digit after the point.
fixed a bug in hcl_divnums
2018-03-30 17:37:40 +00:00
7515894082 started adding fpdec calculation functions 2018-03-28 16:40:42 +00:00
4648947ca0 implemented reading and printing of fixed-point decimal number. primitives yet to be written 2018-03-28 08:57:49 +00:00
e4006e6a88 started some code for hcl client 2018-03-18 15:29:16 +00:00
76e3d328e8 enhanced the inclusion path handling in the sample hcl server code
added HCL_SERVER_SCRIPT_INCLUDE_PATH
added optstate field in hcl_server_worker_t
2018-03-17 05:44:40 +00:00
a322f0bc38 changed the hcl_ioimpl_t prototype to return 'int' instead of 'hcl_ooi_t'.
changed the io arguments to have a new 'xlen' field that holds the result of IO operations where 0 means end of stream
2018-03-09 05:05:09 +00:00
e5499cda1b renamed hcl_purgeatdic() to hcl_zapatdic()
exposed hcl_moveoop() 
extended the meaning of the kernel bits in the object flags
extended hcl_pfbase_t to include the type - one of HCL_PFBASE_FUNC, HCL_PFBASE_VAR, HCL_PFBASE_CONST. HCL_PFBASE_CONST not fully implemented yet
2018-03-08 14:18:30 +00:00
e83dcc0828 changed the notatin of an error literal from #\eNNN to #eNNN.
changed the notation of a smptr literal from #\pXXXX to #pXXXX
2018-03-05 03:47:18 +00:00
0957c28854 exported hcl_readchar() and hcl_unreadchar() 2018-03-04 14:43:23 +00:00
5a423b5adc fixed the wrong word output for #nil in the json format 2018-03-02 07:58:37 +00:00
48cb2bb1ba fixed a bug printing %% in print_formatted.
changed to use #x #o #b for hexadecimal, octal, binary output
2018-03-01 08:56:56 +00:00
cc0227a15b fixed a bug in printing a single character when hcl_ooch_t is hcl_bch_t
implemented the primitive printf function partially
2018-02-28 10:17:05 +00:00
8bcade7a2e changed the prototype of hcl_pfimpl_t to accept a hcl_mod_t* pointer 2018-02-28 04:52:01 +00:00
b97e2da6af enhanced the logfmtv to handle encoding conversion of the format string 2018-02-26 15:24:45 +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
39bbd8a2a0 added a new debugging macro HCL_DEBUG_LEXER
removed the debugging macro HCL_DBEUG_BIGINT
2018-02-21 13:02:05 +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
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
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
f054f4eaae integrated bigint
cleaned up code
2018-02-13 16:10:41 +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
6dfbd16871 improved error messsages 2018-02-09 15:04:18 +00:00
9270dfa0e7 touched up code. added eqv? eql? not 2018-02-08 07:40:27 +00:00
a8729532bb changed copyright years 2018-02-07 14:13:13 +00:00
839bef7b36 added bytearray compilation code 2018-02-07 13:55:22 +00:00
b747b4e23a implemented dictionary printing 2018-02-07 10:55:20 +00:00
adc7e89ca7 enhanced the compiler to handle array enclosed in #().
added partial code to handle dictionary enclosed in #{}
2018-02-07 07:35:30 +00:00
ddfc163c37 changed the reader to handle #(), #[], #{}, '() specially 2018-02-06 10:16:01 +00:00