be3302cbb9
fixed the reader and the compiler to process the a dic/array/byte-array item after a period in a data list properly
2021-01-25 15:23:24 +00:00
4ec9395543
enhanced the new compiler to produce working bytecodes for the #() list
2021-01-24 15:45:28 +00:00
c30a8c6688
restored the module loading code in the new compiler. but this needs a total makeover
2021-01-22 15:07:47 +00:00
9c021aa36f
the new compiler is becoming usable. but not complete yet.
...
added more string copy functions
2021-01-22 14:43:47 +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
877919afdd
modified code further to enhance the reader
2021-01-13 09:54:44 +00:00
3d6efc7f62
changing code for the new reader and compiler
2021-01-12 09:06:25 +00:00
0d3d8b466e
changing read2.c
2021-01-12 00:21:43 +00:00
5b046b232e
more code to implement a new object reader
2021-01-10 16:04:36 +00:00
09c2352666
changing code to improve the compiler
2021-01-09 16:53:35 +00:00
a8865a8a0b
attempting to preserve token location between the reader and the compiler
2021-01-06 09:37:29 +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
f68b80143a
switching GC from semi-space copying to mark-sweep
2020-12-31 17:48:47 +00:00
74e6511b9c
cleaned up code and build files
2020-11-15 10:26:14 +00:00
59da10458d
enhancing the compiler and hcl_execute() for better interactive use
2020-10-08 09:25:54 +00:00
5c30d44d15
writing code for function activation using function-local literal frame
2020-10-05 09:37:26 +00:00
a78454fd77
fixed a gc error not fixed in the previous commit
2020-10-04 19:07:21 +00:00
4d0f0e1f9e
changing vm implementation a bit. this commit is buggy
2020-10-04 18:21:05 +00:00
5b7b2c0dea
still experimenting to find a good way to represent byte codes and literal frames in the interactive mode
2020-09-28 15:44:04 +00:00
4d6b2f5dbf
experiments...
2020-09-22 09:19:53 +00:00
4fc557e02a
refactored fmt code
2019-05-31 10:54:13 +00:00
fbdb084fec
refined the msb positioning functions
...
migrated hcl_isint()/hcl_isbigint() to hcl-prv.h
2019-05-04 17:56:45 +00:00
0051809442
changed hcl_inttostr()
...
touched up log output and formatted output functions
2019-04-16 15:46:00 +00:00
0f92c54f28
added hcl_getsynerrnum() and enhanced EOF handling
2018-07-28 04:08:09 +00:00
3c54f5e860
introduced the new type hcl_bitmask_t
2018-04-26 04:39:20 +00:00
f0a823a557
added the abs primitive function
2018-04-07 02:28:38 +00:00
a332acdc4b
renamed some encoding functions for consistency
2018-04-06 16:33:17 +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
650606fd5b
added partial sqrt function
2018-04-03 14:02:40 +00:00
c62ec3c6c9
added hcl_mltnums() which scales the result according to the first parameter
2018-04-02 12:52:10 +00:00
1091c8f401
added hcl_genums(), hcl_gtnums(), hcl_lenums(), hcl_ltnums(), hcl_eqnums(), hcl_nenums()
2018-04-02 12:28:09 +00:00
ea1dc78a17
added hcl_truncfpdevcal().
...
fixed bugs in sprintf
2018-04-01 17:09:07 +00:00
b9034225c1
implemented basic arithmetic operations for fixed-point decimals
2018-03-30 15:43:09 +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
b8ca47f7f9
exposed hcl_addbuiltinprims().
2018-03-19 09:22:12 +00:00
9ad4eda80e
added the used field to hcl_server_wid_map_data_t
...
started implementing .SHOW-WORKERS and .KILL-WORKER
2018-03-16 17:27:24 +00:00
7371618c5b
exported hcl_seterrbfmtv(), hcl_seterrufmtv()
...
added hcl_server_seterrbfmt(), hcl_server_seterrufmt(), hcl_server_seterrbfmtv(), hcl_server_seterrufmtv()
added socket address conversion functions
2018-03-14 14:40:05 +00:00
d8499cc3a9
put the hcl server code into a library
2018-03-14 10:14:38 +00:00
4056b96a0f
removed a duplicate macro definition in hcl-prv.h
2018-03-11 17:08:02 +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
03d0dcfa76
work in progress to add the hcl_purgeatdic() function
2018-03-08 10:00:57 +00:00
d1ce53cb45
implemented the builtin primitive function sprintf
2018-03-05 03:35:44 +00:00
bc6c14808f
added the logf builtin function
2018-03-01 09:46:02 +00:00
191162d3cb
touched up various remaining implementation details of the printf builtin function.
2018-03-01 05:25:09 +00:00