Commit graph

121 commits

Author SHA1 Message Date
crc
d15ca7c96e ri: add some help text on startup
FossilOrigin-Name: 6c8e5c3a3656835f8d727bab7aae5149baaa35b89fea82f7cf64b331ec97e321
2018-01-13 19:34:55 +00:00
crc
f9543e1139 ri: more comments, rework the input loop a bit
FossilOrigin-Name: d7f7b1772ed512b66582c195adda13248f5e97a5b8ccb1e170aa385ad4ac57a5
2018-01-13 13:56:06 +00:00
crc
08e0a223c1 initial checkin of "ri", curses-based interface to retro
FossilOrigin-Name: f87408438c1d233af8772c4dde91de1001032897730d87395436abc0043d7429
2018-01-13 13:44:20 +00:00
crc
fd62be3640 free pascal implementation from Rob Judd
FossilOrigin-Name: c8564002494b8c0c64afe9c39085b8bb1ffd32b2e0bf7cc99190d3165047a80f
2018-01-11 13:17:30 +00:00
crc
c27127da5c rre: work on making extension naming constants more consistent
FossilOrigin-Name: e01a468ca36aca8ee04e6f75ae3d785d8f3af3fb1d9f955ed7a458a270aab95f
2018-01-10 14:53:30 +00:00
crc
43a3402278 rre: commentary work
FossilOrigin-Name: 736d65d005586829040475bd70362592b8d822ff7ea73275eca4818ec8ffd6fd
2018-01-10 14:02:55 +00:00
crc
967b53d9dc rre: more refactoring, commentary
FossilOrigin-Name: 5f3397efa1bcc31e314a535c99bfd69ca90cc7d49542d2049942267034d1c185
2018-01-10 13:36:08 +00:00
crc
54b7e0b4af rre: more refactoring (breaking apart main())
FossilOrigin-Name: 098dae0da8e5b7aefbe6279d69ab93f964bb54c9be607c972cd52be846f45675
2018-01-09 21:59:00 +00:00
crc
7d7ed4217c rre: more commentary, remove unused functions
FossilOrigin-Name: 19ea7156ae70592fa641f0d39c8153dfd880a7f09254ff179fce57631dd5b187
2018-01-09 21:36:33 +00:00
crc
1ec0c23569 rre: more refactoring
FossilOrigin-Name: a1b1d96f731735a57181447e949768ddb749b27eee71daf979ef9ac5f3852687
2018-01-09 15:32:29 +00:00
crc
f26020ef1b rre: more commentary, begin work on refactoring the execute() function
FossilOrigin-Name: eaf127616767361b452246e249fcc37251dbd1373e842ad5ea44c5abe821dac2
2018-01-09 14:47:13 +00:00
crc
cfb94a82ea rre: more commentary, start work on allowing enable/disable of extensions
FossilOrigin-Name: f31639573ef9c642c1244eb9e0bcd887d1ecacb13f940b7524821d94edf08928
2018-01-09 14:17:26 +00:00
crc
28358e8499 begin commentary on rre
FossilOrigin-Name: ce56dc2e69811674fea2fa73a59f064ce981fae372bc7a46639506a367559ae5
2018-01-09 13:58:34 +00:00
crc
8a6bf25fd6 commentary in repl
FossilOrigin-Name: e3de9f276fbd898e41c563f9d0ea6047b0c60a246bdc211d7476d9f916db918e
2018-01-08 22:01:05 +00:00
crc
e7ba5b8f44 repl.c: remove unused stuff; internal cleanups; no longer use printf()
FossilOrigin-Name: e2c30a3fc05e505eeb6565e6697a757f8806a4a326ba21d6e0b7a2fd47856b26
2018-01-08 20:51:31 +00:00
crc
170ac5d66b Bump version; add \r to s:with-format
FossilOrigin-Name: 2fc2c22ea74ade73584e0a292ed8be1f71d33714e1c24822067fccb4b4c42574
2017-12-21 23:19:13 +00:00
crc
243c5d92fb add f:ceiling
FossilOrigin-Name: 3967323c607c8bff963a1555a603ae720bad43d8649a2214d1a42f463fe95079
2017-12-19 01:29:28 +00:00
crc
80c2ac7f0d fix string_inject in rre (thanks @Mokona@octodon.social for finding this bug)
FossilOrigin-Name: acf755ae7b2d5485687f686fc59f71fcabd3c60e185d694e8ece1e7462974e87
2017-12-12 21:31:01 +00:00
crc
8162610f96 start of rre for windows
FossilOrigin-Name: 699f76bc69776188a8fe0c1eb9f16da1f5bfb0cd25aeafab862e89d121e79d7a
2017-12-11 18:04:15 +00:00
crc
2aef61474e add backspace support to parse-until
FossilOrigin-Name: e60d47a21518c155c9def557c6b7f249dc85316a57753898e119aff7edc6f292
2017-12-01 02:23:12 +00:00
crc
96a2252e53 rre: add parse-until and gets
FossilOrigin-Name: a156a85069a7f7ac82feb9b589178bedc9aa845c0f235fd6ce97f539edcc62f1
2017-12-01 02:17:11 +00:00
crc
e21bd34e5a rre command line changes: -ic is now -c, both -i and -f allow passing a file name to load via -f, added -h for help text
FossilOrigin-Name: 44009ddf80906b82be2f7869a95be8c539b0efa23537329e7164cac18276d335
2017-11-28 18:57:51 +00:00
crc
b511cfea0b fix issue w/include causing rre to exit in interactive mode
FossilOrigin-Name: adfe6121a489741204ff86b16d6236ee66caef8d1fab9c48c196698ad27568b4
2017-11-28 02:20:59 +00:00
crc
eecd8d7ebf rre: add "include"
FossilOrigin-Name: 2a8da0cb83630ee9094056ea9974ddda84a474aff88cccef517a6b50634f832a
2017-11-27 21:53:51 +00:00
crc
dd19df605c attempt to catch ctrl+d in rre -i mode
FossilOrigin-Name: 2749d2b8feb877e99ed47d1897023012aa2834a9eb082cbfcc6dbf6f2fe43eb8
2017-11-26 15:20:56 +00:00
crc
d9a5756151 rre: handle backspace; add -ic for cbreak mode, use -i for non-breaking mode
FossilOrigin-Name: 0835cc01bca5eece5d9d5036fffba44e01ed6ebd4c612c613c3f7764dce92e79
2017-11-26 14:54:55 +00:00
crc
507398f431 c# repl: fix queries for depth
FossilOrigin-Name: a29450314060402a1995635bbb545006bb0626ccfe9618a2b51bc13a98d7621a
2017-11-22 15:43:54 +00:00
crc
8005f95107 repl.cs -> repl in c# for windows users
FossilOrigin-Name: 9399da06915b2bc50c6785680d939283cb801a80456793717a6257dc066fd211
2017-11-22 13:58:58 +00:00
crc
777b15e56a rre, repl: quit if attempt to store before address 0
FossilOrigin-Name: ce61c9c18e464240e22f68b50fe17474ef089a67143e4c3d3b615b83baae42f7
2017-11-21 12:20:55 +00:00
crc
ec4e406feb rre, repl: quit if attempt to store beyond IMAGE_SIZE
FossilOrigin-Name: 9ca790fe4e89dd18914e494d60224dd837e16f43f528037ab73f31374ca432b4
2017-11-21 12:19:00 +00:00
crc
931be26034 add f:PI and f:E to rre
FossilOrigin-Name: e1d4ed5d9b3722f59ba0b5b061621d58e484421df58c92948f14b4b7c818e2f6
2017-11-20 01:19:03 +00:00
crc
9913ffca13 rre: add more commentary in the forth side of the additions
FossilOrigin-Name: b6e5157795016c817bb0f1177868b464cb025e31e9fa04f66d299b47809759a8
2017-11-19 15:08:58 +00:00
crc
29b0370e50 shorten C-part of floating point code a bit
FossilOrigin-Name: a5f0b35f946f25c813de5c16a1b172727b011a7d2bfaa644c9e1e4ca866dd6eb
2017-11-19 15:00:29 +00:00
crc
8185f9839c add f:asin, f:atan, f:acos
FossilOrigin-Name: 6a4e741ad77d6bf322254aeb35da613db702505efe60820d91b100813ac9b5ff
2017-11-19 14:51:25 +00:00
crc
53dc840260 add f:sin, f:tan, f:cos
FossilOrigin-Name: 613582429fb75cee604f8a4e8402286a3cf76b561782a3dbb2156e0a19a3d0ff
2017-11-19 01:04:22 +00:00
crc
44285bc81b rre: now exit on ctrl+d when using listener
FossilOrigin-Name: e7f81e571352dbe594083f98ef72e6707a9bfbb86072322191409630c28e82d8
2017-11-16 17:56:15 +00:00
crc
1e3de483b7 rre: add -i for interactive mode
FossilOrigin-Name: 1298ee794c8f9a90d099b39b2ef4c59f128de0ba73a7ae11f37abadc4ae24241
2017-11-15 19:57:17 +00:00
crc
ac8745a4a4 add unix:sleep
FossilOrigin-Name: 6db38b3d4ff77f35e025658a3ced78cacfcc093742ef7d20cb9767830d738d73
2017-11-14 19:16:49 +00:00
crc
10a5177776 fix s:trim-left
FossilOrigin-Name: 6e7b11d433b2d4098379b0e649c94fa7344b47c4b72c1e285e35c18cb962ed63
2017-11-14 01:47:26 +00:00
crc
9e7c27fcc7 add s:tokenize-on-string to stdlib
FossilOrigin-Name: fbbc60112e0011614b639c24a061eca41d3924b93f9a8e02c0685243e888c3a9
2017-11-13 13:05:46 +00:00
crc
990066ac08 add s:tokenize to stdlib
FossilOrigin-Name: 1c4918bebdacb9e724b29f51f5a80751116c1afbd28606e8a8dfac2a9a71c489
2017-11-13 12:52:10 +00:00
crc
f5ab204483 add file:spew
FossilOrigin-Name: 7e915652801f48ebac0fefaf29fcdfe530968d8e300a8735b9d192cece2c4689
2017-11-11 02:39:41 +00:00
crc
281932ff4a add unix:putenv
FossilOrigin-Name: 0be9f7ec4faec2d57a9d993defc8729a721c9b5f08320d2319d4059fffd5877e
2017-11-10 19:23:28 +00:00
crc
c9aa72a25d unix:getenv, unix:chdir
FossilOrigin-Name: 59da938df20d3bf9fc7b72184e2ae6dd3f971f20f40c3d245e9cf2201d967cb4
2017-11-10 19:10:33 +00:00
crc
c2005b0ea6 s:split-on-string, s:replace
FossilOrigin-Name: 013fcbf0fe7e0f8955f7e7d417422bcdd60bd431e4d0f41f0f9a4087d00997f5
2017-11-09 19:28:01 +00:00
crc
fd20b76fc8 add unix:write to rre
FossilOrigin-Name: 6b8a0b19700bd3ea4bfb63a3c075144dd2c7f2e7fa5a80b11ad0cb662ee71d71
2017-11-09 17:59:04 +00:00
crc
82bb939250 add s:index-of-string
FossilOrigin-Name: 4f06dda1a7ea4539aac4c61d5c0a2ef37bcc1f5234a85f27094ae4a91186c5b0
2017-11-09 13:58:18 +00:00
crc
2af9f76e5e use build.sh instead of Makefiles
FossilOrigin-Name: 0629a8313d079a075c867170be8c4884aeb2b8938ec3e437978af3ce2b67212c
2017-11-08 21:33:18 +00:00
crc
c151963458 add support for using \_ with s:with-format
FossilOrigin-Name: 915c98a041b203161712264b6b30324fb20dc9581c7a8d8fb5b875e5b2d6dd47
2017-11-08 14:42:48 +00:00
crc
7c8234d65a reorder linker flags to better support gcc
FossilOrigin-Name: a513b7f1ed731b676830cac35a396de778474fee7dd64103d783b9c18f849c1b
2017-11-08 11:45:57 +00:00
crc
55fb5ecf42 ASCII: values are now class:data instead of class:word
FossilOrigin-Name: 48de84a700ed456e2311ff723a480acc81fb8fce763dd2fb7a55a20f28e144f2
2017-11-07 13:40:15 +00:00
crc
029d08dd4d add unix:popen and unix:pclose
FossilOrigin-Name: 53698064ecfb0147075a38a1b53a0b62480135b1461c8fd35d99724520f759af
2017-11-05 21:52:49 +00:00
crc
f1177aefba add unix:kill
FossilOrigin-Name: 7b1b1c28f982ca18ae5694507307306b47413c373e1d6f4e8d096d798793ae0c
2017-11-05 02:51:13 +00:00
crc
66c05fc508 add unix:wait, some commentary on the unix: namespace words
FossilOrigin-Name: be7b34cfa06d5cc3e32ad7157711c8b99ad178d9a27a9c447d3db34aff516099
2017-11-05 02:46:38 +00:00
crc
aa0eec214e sys:system is now unix:system; add unix:exit, unix:fork, unix:getpid, unix:exec0, unix:exec1, unix:exec2, unix:exec3
FossilOrigin-Name: 45b455bbe7303845a17d9feadea26d0ea3ffd22bf13bb40db01368100c75bbef
2017-11-04 21:22:36 +00:00
crc
0b4e17e66b rre: add a sys:system word
FossilOrigin-Name: 72327d3b0cc6574bc791de4b5bb6ecbd27e0b41cf198e110a19e42e1f967dfbb
2017-11-04 14:23:49 +00:00
crc
4990a36294 add commentary; improved dup-pair
FossilOrigin-Name: 3d1b2de02798d2b545d6b28f3616700cc2f97688742c827aafb079af405a636b
2017-10-29 21:40:05 +00:00
crc
acc3ca0bb2 add d:lookup-xt to standard image
FossilOrigin-Name: 93028838c88b5a721c03520ed51d80e795ec5006c6dce4bf204f081e0aa1e321
2017-10-29 02:09:56 +00:00
crc
7cffe2aa7e rx: reduce size of quotations by 1 cell
FossilOrigin-Name: e094f1fe2d4b038cbec5287ec16b24bebdbbae87b5e914193168f0dc7dec0cab
2017-10-25 17:17:35 +00:00
crc
ac12c7dcec small tweak to /
FossilOrigin-Name: 0ec95456759c2b81a67ecac0fdc9a3f4e2b74903b03665ed9b10e7ca03961cef
2017-10-25 01:42:06 +00:00
crc
17ca162acb fix a bug with n:MIN
FossilOrigin-Name: 5f0d547a60b25530e9833b47d6ef24ef43c0553d35f30bd9e60ea42e71ab3517
2017-10-25 01:36:47 +00:00
crc
06e82a103c formatting adjustents; use a var in n:to-string
FossilOrigin-Name: 1efd0c15592438ea061a80695253637efd0954230d14bf717d1c7effa78e2e9f
2017-10-25 01:32:19 +00:00
crc
bb2f41959a more commentary; use v:preserve in set:for-each
FossilOrigin-Name: b9bc6a30ef9001562fd92d5a768f6048618158539e24be7d6c67f80b7adc0517
2017-10-25 01:22:49 +00:00
crc
c14797cccf minor reordering in RetroForth.md; save a cell & improve readability
FossilOrigin-Name: de88e6f76488bba8c8dcbf193bc09da14640877fb64b6982d593056e1a50ad30
2017-10-25 01:02:02 +00:00
crc
a6b48ef0ce @ and ! prefixes now pack the lit/fetch and lit/store pairs to save memory & improve performance
FossilOrigin-Name: 8f82817a36a0f884dfcb687a25b761ab1881fd1525cf3a8e486f67aa84ab39c1
2017-10-24 21:00:50 +00:00
crc
7c89a7ee2b Buffer for s:evaluate now at end of memory w/other string buffers.
Added `FREE` to return number of available cells. Image is now ~1k cells smaller.

FossilOrigin-Name: 44379d08471b4afa256d98ee7e3e3f8c48af7d9b94da0395142b16bbf2a80571
2017-10-23 19:27:14 +00:00
crc
022ff9060c max string length no longer hard coded
FossilOrigin-Name: 8967ed0307b01da24f83efc1396a6ec724de01c8de54e7bcf99a676a84740cf2
2017-10-23 19:14:41 +00:00
crc
2ddce97006 add s:const to stdlib
FossilOrigin-Name: 87ce2066d166476f2739747e97d4daa070b674173433fbf912cc6fba94afcbdd
2017-10-20 13:30:31 +00:00
crc
851f1f4463 some slight reorg, commentary in rre.forth
FossilOrigin-Name: 2c117dc84ead9ea4ad79d07659cd40309f58fe89d19651b492c4c3ea1ee40a18
2017-10-20 03:05:43 +00:00
crc
317633ea9e some cleanups to rre
FossilOrigin-Name: e5640507a0128e1244c04abdd9a92a0aaa5f71a621d48f7c12190af7b0389afd
2017-10-20 01:30:55 +00:00
crc
af66c0079e source -> interfaces; remove tanu
FossilOrigin-Name: 4bba4776c0c7e6b1a336592eb50beaff4a81a70d8c20be376e12322ef5bfd16c
2017-10-20 01:16:46 +00:00