Commit graph

58 commits

Author SHA1 Message Date
crc
a75d0b21ac bin/retro - "bye" now uses halt instruction instead of unix:exit
FossilOrigin-Name: 44f755be1bb85e1a588aca9a5dfaaa1e652bc3fe56f3598cd7204cb84d3f2196
2021-06-21 12:09:55 +00:00
crc
be7b1ad007 nga-c: add unix:execute
FossilOrigin-Name: d3e589e1fe696182ca97ddbd6065b693459781a074f34899eb3809ef9eedf62e
2021-06-18 13:39:57 +00:00
crc
fb82418d88 nga-c: fix an issue with script:current-line
specifically, script:current-line was not working. this patch
isn't fully tested, but does fix issues in my test case. it
makes `script:current-line` immediate (so references inside a
definition will actually make sense) and fixes an issue that
was causing indented lines to be counted twice.

since this now skips indention, it should cut down on the
number of evaluations on empty tokens, which will save a little
time when running programs.

FossilOrigin-Name: 0393f609b505ec2a364831078f36ec44b633ea579e7bc0b74a9665c07f08d7ce
2021-06-03 14:07:29 +00:00
crc
cfd4e9ea15 floating point: increase precision in f:E and f:PI
FossilOrigin-Name: bd213f06612c3c2c2a71cb1bce2fe55d991ef8801f81152e354981f407602c5b
2021-05-31 00:14:34 +00:00
crc
e906676d22 retro-unix: the old TIB was hard coded, use the stored pointer at address 7 now.
this fixes a buffer overrun that caused the `err:notfound` header to be messed up.

i also policed some whitespace and removed obsolete comments in a few files.

FossilOrigin-Name: 4db7040fbc6a4f73e7da6a32de89de915aca6d33137afd04f8d5b3368612b214
2021-05-28 18:58:21 +00:00
crc
c45816157f work on the retro-compiler
specifically:

- remove old runtime implementation
- use the standard retro.c as basis of new runtime
- remove old files
- update Makefile

this does not address issue #3.

FossilOrigin-Name: 959bab6910c41cd3ce24bf46d3b9b61bb83864edb25afc5148e7023ffd58fbf5
2021-05-18 12:42:15 +00:00
crc
27c074fa00 in which many things change...
- the basic image now contains a minimal listener
- new repl.c uses the embedded listener rather than
  implementing the listener in C
- removed barebones.c as it's no longer needed (overlapped
  w/repl.c)
- removed retro-unix.c (use retro.c instead)
- removed retro-windows.c (use retro.c instead)
- removed retro-image.c (use image.c instead)

FossilOrigin-Name: 21cea9bf556aef732fd9248de2debaf00dce24304a426c56392d503723728f43
2021-05-17 17:18:27 +00:00
crc
8c441b820f whitespace cleanups, add back -h startup option
FossilOrigin-Name: aa18384826a4134b64001c9b64b15bfd84f1d1326e1613da8dbdcc6c7a3a3631
2021-04-30 15:09:01 +00:00
crc
e82794ec72 nga-c: 64-bit builds should be working again
FossilOrigin-Name: 3a2a50361818026ba8b7e6d3082c6c44ae170b51801f329caf037aad0db1e9c9
2021-04-22 13:45:32 +00:00
crc
c392a9bfd5 interface/unix: reduce size of io:unix-syscall
FossilOrigin-Name: 74558b75eec0df5a42815a73158f82455cdcced3e8156fc175f81b44186520a8
2021-04-19 17:43:03 +00:00
crc
00f3e53a83 interface/scripting: refactor to reduce size
FossilOrigin-Name: a9419952603779684fcc5d626b394a66f17d8d5fa6d41a941c251da6b8b29506
2021-04-19 17:41:14 +00:00
crc
4d0c80823b interface/filesystem: smaller file:operation
FossilOrigin-Name: e000d1fab7c5b3cbab520a2a5e74bf299cc674edb8b5ebab3c26f6cd29571839
2021-04-19 17:38:47 +00:00
crc
98a6a30db9 interfaces/floatingpoint: smaller io:float-operation
FossilOrigin-Name: 05a362eea49314fe8f9d942c773be1685d845166a48f0201bfbd2e7af16829aa
2021-04-19 17:37:16 +00:00
crc
5ba34b60a9 interfaces/rng: smaller n:random, remove io:rng-operation
FossilOrigin-Name: 893637993c41b36f620410fe489d25d5cb9d08d41dd80f9097b3c193fd54cc92
2021-04-19 17:35:29 +00:00
crc
cd47df06c9 interfaces/clock: reduce size of clock:operation
FossilOrigin-Name: abb9e847ac79f6f8f1782afed5b85030984d4f5db0389932556fe21e1ce96f2b
2021-04-19 17:32:15 +00:00
crc
de2b823023 new example
FossilOrigin-Name: ea6ee29d8568694118c6ba0741d685af3075c7c17f29aa46a3262e8bb5880135
2021-04-12 14:43:27 +00:00
crc
8d9e7c4cb7 nga-c: remove dev-image.c as a dependency (use retro only to implement image:save now)
FossilOrigin-Name: 089b89b28329b5ea8463df2c244b238e6ad8e28b73b5511dc649b7db31584158
2021-04-08 15:25:24 +00:00
crc
6a4aaf8eac prefix: namespace is now sigil:, rename words, update examples, update docs
FossilOrigin-Name: 25cf19660ab7728d7bfee2722ea826a8a438faf92b2504b28d922d2958906aed
2021-03-30 11:58:25 +00:00
crc
e29fc3f0bc build with -DENABLE_SOCKETS to enable socket interface
FossilOrigin-Name: c189e61c1b84c8a6cd0089e0b9725fd70c798736a81cd20d38162193d0d05015
2021-03-21 01:08:22 +00:00
crc
9c93e766fc nga-python: latest code from Arland for Pythonista UI module support
FossilOrigin-Name: 027308b773f14441c3c74a15106c1b261cb32e3b3d96facf7ceb14353130852d
2021-02-01 00:45:55 +00:00
crc
77b2ccc463 nga-python: add decimal io device (#32)
FossilOrigin-Name: 4a0a1184f66f855840fa7229013d6b4b68026584dfc72906f3e4994fd346f3f6
2021-01-25 15:43:05 +00:00
crc
e19e2e95eb devices: simplify c:get to the minimum needed to function
FossilOrigin-Name: 153adc003772d5d723b73df16b07f6e6d87598dd676e594526c25d7952404f96
2021-01-24 02:42:45 +00:00
crc
442bddfed2 fix a bug in the unix:for-each-file
FossilOrigin-Name: 3fc522a3791deefa1858df45f6850185a8781d6a565919c2d4c61486a29ba1d3
2020-12-02 20:13:26 +00:00
crc
74b726049b remove an extra space
FossilOrigin-Name: 7ed556703dd934593f0443b0d3fe7b86d743f35c50ac66c001c98b00cb3ee37c
2020-12-01 20:31:29 +00:00
crc
b05806fcd8 slightly tighter implementation of some of the pipe related words in unix:
FossilOrigin-Name: 76a678bb6dfe3f52833082d02352b4b8de871d76da6d32ccf49a0dea054ad697
2020-11-30 18:47:06 +00:00
crc
9c094e91b8 io: floatingpoint, small tweaks to reduce size, remove unnecessary overhead
FossilOrigin-Name: 168427b891e1327a281be3d188a9fa60981c7e412633436906f87e8c6c701a78
2020-11-23 20:25:07 +00:00
crc
f4a4f14b42 retro-unix: add unix:pipe, use \^ in clear
FossilOrigin-Name: 45fa0fd8e366cc11667959e27308b49d139929cd898fb3c7f4638848524f83a7
2020-11-23 18:58:51 +00:00
crc
e4eb91eb79 io devices: reduce memory usage
FossilOrigin-Name: 0787996383d82ab30c7b62dc4adf38c8360c6849f8e3b9d23f9e788d2d5322c7
2020-11-19 19:33:47 +00:00
crc
8c99de46cc add initial abort implementation (re: issue #16)
FossilOrigin-Name: e60daf2b8f8ac43c355beca9131fa029148033dc0f21493bff27dcc63a017478
2020-11-16 14:16:36 +00:00
crc
0287339ff9 retro-barebones: update w/latest image, some cleanups
FossilOrigin-Name: 02f302af576d502ba19eb058deb9236a218bb8d85c0e321c6058686b1a8ce5e8
2020-11-02 13:25:54 +00:00
crc
13f11bb4ce docs: add missing entries to glossary
FossilOrigin-Name: e7a4233ed04368230bf315a076bdb3f105fff28f352a28a17b0efc755deebae8
2020-10-01 13:45:20 +00:00
crc
d78edca386 remove last uses of old names for file i/o operations
FossilOrigin-Name: ca063e29bf5ffaec73bd2503d71244f6e28852fef0c7189064bd2e583e8bd957
2020-10-01 13:35:37 +00:00
crc
6199343fa7 fix more uses of deprecated names
FossilOrigin-Name: 79d334bf87cdb99181e95b3f9a2df0eedf1e23f493b8d2540f9db2db848ca862
2020-10-01 13:28:46 +00:00
crc
360386fb3b i/o interfaces: add a few comments to the random number generator
FossilOrigin-Name: 90e90f4770c1132336fea6dbfa1b4f2e82aed69202a1ebba033af2e15bb36184
2020-09-18 16:18:03 +00:00
crc
ef9bedc247 interfaces: work on commenting the floating point (forth) code
FossilOrigin-Name: dbcc2a7584eba163dce2082a0c926addf5b300e98cb4c642017f3612114060b9
2020-09-16 20:01:24 +00:00
crc
e3be3a016a interfaces: io:float-operation rename to float:operation
FossilOrigin-Name: b55987b144e1e3f9a76d7155b4838795a4da311d36b580b6242d64c636928449
2020-09-16 19:50:53 +00:00
crc
350df23218 interfaces: io:clock-operation rename to clock:operation
FossilOrigin-Name: 1a6e8b59be02d9a0d7c1eb721dc243d5fab1011450bf49583e331aae5ff6f573
2020-09-16 19:45:47 +00:00
crc
1e54b1dcd0 retro-unix: more comments in the socket interface (forth part)
FossilOrigin-Name: f4868e90374ee332c5e62be83f9dd79b8a5b2283b94c58c81b28149b813f90c2
2020-09-16 19:42:55 +00:00
crc
17dfce7e79 retro-unix: work on adding comments to the socket interface (forth part)
FossilOrigin-Name: 4f1a44ca993c6b9e348da2fc4cf5b9cf59c7212d7667efa3fb1febe65fa01d8f
2020-09-16 19:28:54 +00:00
crc
e77c44509c io:socket-operation is now socket:operation
FossilOrigin-Name: 1e0e9aedf09698db75ae181c801c6a50850372cb91ff77281b9267fa8392f74a
2020-09-16 19:07:06 +00:00
crc
8641e3b363 io:file-operation renamed to file:operation
FossilOrigin-Name: dd5471ed91faa50a790a5334f40432ecb7b0af24ca3266a59f033c57d2db937b
2020-09-16 14:37:30 +00:00
crc
660e52bdcb rename words in sys: to script: (old names still work in this release, but are deprecated)
FossilOrigin-Name: 1a43743f43076eb087ee4dd7fbfa96b8dfda2aa4ddcff41e6a5a9634ba6e239c
2020-09-14 19:55:02 +00:00
crc
06f7973eb1 begin word on splitting the scripting interface code to a separate file
FossilOrigin-Name: 631f12feffb1b0eaf2f783ad12df77708c823f2315cc0865052fd6cb3b476758
2020-09-14 18:56:34 +00:00
crc
e3c83e205e retro-unix: add sys:abort-include
FossilOrigin-Name: 46ed3372453392f8aeffb95dc02b7e8a8c555ae6d5e41055bce0337437fec6f2
2020-09-14 18:33:18 +00:00
crc
8a6a348d6e retro-unix: add // for line comments
FossilOrigin-Name: 1ae398864d98ee367638a99cedd0ff5029c3eaa25399e23f6a9cac1e3e840617
2020-09-11 17:22:03 +00:00
crc
b48ae91544 retro-unix: add sys:ignore-to-eol
FossilOrigin-Name: 9fd20ae1ec4393f3734918afc379b0a1a562ee2a0f867a907af96c895281dc69
2020-09-11 16:50:57 +00:00
crc
11fa881179 add stubs for sys:current-file and sys:current-line
FossilOrigin-Name: d2b032dae32b987c44b7df66c658b29df8b4f8cf6410beb657cb1b9fe8e8b399
2020-09-10 19:59:33 +00:00
crc
02bd140c4b continue work to removu
FossilOrigin-Name: 6e7d888e88b952d156f9eb4c905e756a085648cdc94f15f7b2bb31643c570164
2020-06-29 19:07:57 +00:00
crc
1f90d210b8 image: reduce overall size, use ASCII: names in listener
FossilOrigin-Name: 86fe6967af0b98a14474be5ab23e333c0cc1b7a68a7bfb24899b3ed181d395b5
2020-02-12 16:04:37 +00:00
crc
3eeae51934 retro-unix: refactor file:slurp to remove a variable
FossilOrigin-Name: 4c3c9e631df888b38ab52896a3eca650037d514466d55847c87154a950b11c50
2020-02-03 15:46:52 +00:00