Commit graph

140 commits

Author SHA1 Message Date
crc
0202a24f0b switch to s:index/char from retro/ilo
FossilOrigin-Name: 2f2e5f7e90adc73319bf3593c8c315d5bd4d558f68ab292500f49606bc9ef879
2022-03-14 14:02:24 +00:00
crc
4fe90f7978 add BUILD constant
FossilOrigin-Name: d4a363376876638463493d08c77eb2bb4441f48996721b5fc8aca73022eabd5a
2022-03-07 13:46:27 +00:00
crc
1cefe4e333 fix s:replace-all
FossilOrigin-Name: 32e7c4592050bac1a96620be70a4d88b28dde7c5f273056e482b09ba6ce6f782
2022-03-02 11:23:09 +00:00
crc
02d6e49694 simplify s:contains/string?, fix bugs in s:index/string
FossilOrigin-Name: 2da03f37c02c174cec02167d722740733d5a0efa961ef24c769035ef3eb9716f
2022-03-02 11:16:29 +00:00
crc
c4bee9fe0c bump version to 2022.7 (for next release)
FossilOrigin-Name: 14179bd2bb9236fdbaa049024d06e273f37e11e2c6d826316af09cfcfde5885f
2022-02-01 14:29:19 +00:00
crc
98d7922457 move retro.muri source data into retro.muri; bump copyright year in license text
FossilOrigin-Name: 2765bf7a9ce834527d7698e8f3eee7e67c77aa552bcbca6b2da87481e4ed99f8
2022-01-04 12:05:47 +00:00
crc
d73ea6fb30 initial step towards supporting dictionary lookup via name hash
FossilOrigin-Name: 9fb59e950e9a7c69edce922d450d2ffaa40c71f8b27c1c50b80199912ecd7042
2021-12-27 18:20:21 +00:00
crc
c19ac3e293 backport a:index from retro/napia (no longer needs to create a curry function when used)
FossilOrigin-Name: 704f6033f56ff0c908ff8f132d99acd0128a7a28aeb1ba4a4d882a1b5076579b
2021-12-22 14:21:16 +00:00
crc
86e1319c8a remove alternate names as they are not yet finalized
FossilOrigin-Name: e4547a9c0809421e778322270e80a275ff512cce2f8bdf9e7f147c0eb5bace56
2021-11-29 12:40:30 +00:00
crc
0d85085139 revert changes to a: words
FossilOrigin-Name: 35c0faa6e43c254a54d17b180eef3913468cf6fbe4fdbe301ca2cfab49fb3029
2021-11-29 12:03:41 +00:00
crc
923b5ec14e update a:to-string
FossilOrigin-Name: 1ed73c3bbbaa8933d0d1f23b9a34347e8fc6c0889d92fec33d56ff362f823f47
2021-10-29 10:06:04 +00:00
crc
2c7991d200 update a:dup
FossilOrigin-Name: b9918611cff4e5fea406b96b03b1e4d99e58b29ca46a6cdfd31e0c55f536080e
2021-10-28 17:41:06 +00:00
crc
4fbfcf0342 fix a bug in a:counted-results, also update to use sized accessors
FossilOrigin-Name: 2b26631a5b15122526fc8cc7493bc4ce5faa04646f127efe74d0a621b3e3c4e9
2021-10-27 14:54:15 +00:00
crc
1486cd9e97 update a:for-each
FossilOrigin-Name: 8d0fd38330d3a2892cccf2cf6f288dacc8d4e49cc77ac8efc175554550f1d73a
2021-10-27 13:15:08 +00:00
crc
7cd9c751f7 array internal accessors: set defaults
FossilOrigin-Name: cc92fef79aff7de240b5371b22f020c976f4b6d3634eb34107355a8970c97e2f
2021-10-27 13:11:48 +00:00
crc
063b2cca37 add internal array accessor words
FossilOrigin-Name: fae4711406331bd7b5c53dac5600890d88eac8ee63f6b4088fed62cc46eb3a43
2021-10-27 13:07:52 +00:00
crc
7fb5bfbf6b a:counted-results no longer uses , to place values
FossilOrigin-Name: b16b2319255b38e7ff14c7dc6b23cddaa815b48b6ffa888c06c9c32c8e3a1834
2021-10-27 12:13:31 +00:00
crc
ee9ff1d852 defer release to november; bump version number
FossilOrigin-Name: cc375458b79bbbe72bca458c24a4a3ff99182498bff0044317a45ce8f2b16cbb
2021-10-26 15:42:54 +00:00
crc
a0a2355b56 add new forms of fetch-next and store-next for byte addressed uses
FossilOrigin-Name: 3d59861046bcf27950b111464b22be2428e1c4ae9c35a88cdb34ced79a058a26
2021-10-15 15:53:34 +00:00
crc
1d8c9f3600 fix bug in deprecated name s:index-of-string for s:index/string
FossilOrigin-Name: d7ad402875dc4b249d42a4a25c6760c17a9df4b196b6ce3f52311d400f02c867
2021-09-07 13:04:32 +00:00
crc
77b7965eb4 add s:fetch and s:store
FossilOrigin-Name: 8bf0d01598a0f64387b3144f5df1c3f81b1d0f18dc3144754735dcef52e3d69d
2021-08-26 13:25:59 +00:00
crc
ce91454df1 add in a "d:source" field to the dictionary header
FossilOrigin-Name: d6c27c49b054c022fad6d2898d173f0a2705925a97bb139c1c6fbdb48f896da7
2021-08-10 16:09:58 +00:00
crc
e189c63e42 add h:fetch h:store w:fetch w:store
FossilOrigin-Name: d8f907696229968bd122171614ca842f9bd215d72761fd1b2629aca21de4e0f8
2021-07-27 12:01:47 +00:00
crc
588734502c begin work on 2021.10
FossilOrigin-Name: ec52ab051f7cdda9c6944a30034d08f441d6e82af90d4a9e9c71839a2aad8a80
2021-07-26 14:58:23 +00:00
crc
e05b3494e8 had s:get and s:get-word swapped
FossilOrigin-Name: cc216d0fb3791c1f7f32fc4814b08c3a8c66f640858902f754e26313103c9765
2021-07-07 17:30:54 +00:00
crc
999a3e9a29 fix bug in s:get and listen allowing buffer underflow to corrupt memory
FossilOrigin-Name: 337c41eaf18589c1d8201be02574b477455023d3508a9657aa6e08129386dc2d
2021-07-03 16:40:41 +00:00
crc
31a6428fb2 add b:fetch and b:store
FossilOrigin-Name: 81d42683735f00af57af5c3686d6da72e38dcd9cb1db5aafbedb0a3c38da4348
2021-06-24 14:07:54 +00:00
crc
b6a81359e6 add pack and unpack
FossilOrigin-Name: 459d61941f93a2373c3ac1e18c9100cc17b4e724996723cdf0090c7605af5bb9
2021-06-24 13:38:10 +00:00
crc
67855948b9 add sub-stack comments for a couple of words
FossilOrigin-Name: d47690614c26e3515ab85f5d66ab3afd8da9ec6fa5debe1652d1cd6ae4a4c2e9
2021-06-22 12:35:19 +00:00
crc
4be717f578 core: add "bye"
FossilOrigin-Name: ea15f1bf0112b8756fb59e2dacd44559c972e50d6b460271365e15711689ae82
2021-06-21 16:10:34 +00:00
crc
e0340ea1d7 stdlib: remove if: and -if:, add forever
FossilOrigin-Name: ae01128ca82076ffe4fd74ddfa0499053d43e65b9d16c35f1edba537c7359288
2021-06-21 12:10:34 +00:00
crc
c8a5b047bd image: rename s:index-of, s:index-of-string, a:index-of, a:index-of-string
FossilOrigin-Name: 88416f7a177a6171739a75db5ad4d399735ecd29836424897629ca1787d776d2
2021-06-04 18:34:59 +00:00
crc
06ee9705a8 image: rename some words
s:contains-char?  to  s:contains/char?
s:contains-string? to s:contains/string?
a:contains-string? to a:contains/string?

old names are now deprecated and will be removed after 2021.7.

FossilOrigin-Name: 5a19d7aac514c5ba87963c5f0645f3daa8a8e3dc04546c0627fa046479ecd8dd
2021-06-04 13:54:21 +00:00
crc
ae55f1cd45 image: sigil:: is now a hook point
FossilOrigin-Name: 3f5f0a6728041ad5465a46269d358b64a98d1b4424b5a8376c9ff8e592e419dd
2021-06-04 13:37:42 +00:00
crc
db64b92476 image: use inline assembly for n:inc and n:dec
FossilOrigin-Name: 3e31ec7bcd7ae0c6c415a8dab10709d8525f9b1a369e7a6f7dd9157c18ca06d3
2021-06-04 12:20:10 +00:00
crc
41b3c18145 image: move hook related words to earlier in the image to allow more words to become hooks
FossilOrigin-Name: 15ce16aec360a493a709294e696af8d60fd32a1f36a215430d014dfc40a265f8
2021-06-04 12:07:06 +00:00
crc
edfa9d4a6a image: fix sigil:& to return 0 as expected if name not found (bug identified by rick)
FossilOrigin-Name: 1e0bc9ce4023e9ab03cf73446bcab27a4811571fc102ca14a35bfb5b8413aaed
2021-06-02 03:51:31 +00:00
crc
413ccb3ac8 glossary: clarify that sigil:& returns 0 if word not found
FossilOrigin-Name: e949baafbacd0f29c688b55207db750d5abf80293d35dc045b192e1dee1d9a41
2021-06-02 03:38:07 +00:00
crc
5d37b57745 image: fix buffer overflow in n:to-string
FossilOrigin-Name: 34b4036e1a1de88c059168442b122400e6623917ba44b01758ae59cda1d4b89d
2021-06-02 03:23:12 +00:00
crc
aa99e1b54a nga-c: -t now takes a command line argument for the file name
this closes #63. rick noted that -t is not consistent with -f,
the changes here address this. -f now loads code blocks from a
file, and -t will load both code and test blocks.

FossilOrigin-Name: b32065ff68714f4c6b86e17da44c4778a0ce9ceb7db81a3466edd3da312d47e0
2021-06-01 13:42:30 +00:00
crc
b2c21faca4 image: under 1024 cells again
FossilOrigin-Name: 06bfab86c32a1b9271c726667d79d8b985b5c4a106b21c630468699fe4f90f78
2021-05-30 22:01:54 +00:00
crc
0235d20ad5 image: correct a comment; reduce footprint by 1 cell
FossilOrigin-Name: 5494777637dca11853168e79222ffebf3d9e6c2022ec5978b154fa4fc74537c6
2021-05-30 21:49:28 +00:00
crc
c2b9016d86 c:get is now vectored
FossilOrigin-Name: 29f8192c8a5290592bf646704ac339a807e8cc8de8776c3b9c4a089bf06a002e
2021-05-28 11:07:40 +00:00
crc
13ecc59a18 deprecate s:split, s:split-on-string. Use s:split/char and s:split/string instead.
FossilOrigin-Name: 8514ad5c60cc7c2f34ffd651bd74f477a582d04609b3bba546a1c702963fae94
2021-05-25 14:35:26 +00:00
crc
c3adf4c594 reduce kernel by 3 cells
FossilOrigin-Name: e551008a2d0fddeb2c5a85c0434c1f6b201e800f590a9f1ff26f1612ae4ca29d
2021-05-18 19:59:11 +00:00
crc
cb22c59b5a add support multiple bases
This set of patches:

- adds a `Base` variable
- adds `decimal`, `hex`, `octal`, and `binary`
- extends `s:to-number` to support `Base`
- extends `n:to-string` to support `Base`
- updates the glossary to cover these

Additionally:

- removes the 1024 cell limit for the kernel
- adds a header cell (7) for the start of the text input buffer
- adds a header cell (8) for the end of the text input buffer
- updates most Nga implementations that use the text input buffer to look at
  this instead of hard coding the address

FossilOrigin-Name: 391ad6fc0187e5ff3089d5c42d5d5e1c18fd0b2379c90a148ba44bb66145f020
2021-05-18 19:42:35 +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
0c3af65b97 image: address 6 now holds a pointer to err:notfound
FossilOrigin-Name: 25bd5c151592e0aa1ad4a6d8c326e33d2610836f21c0b587a8080a418e04bfe3
2021-05-17 13:09:52 +00:00
crc
ec2d0b13c9 retro.muri: address 5 is now a pointer to interpret
FossilOrigin-Name: 22ed95c6a44f68e92ddbc6e53cea8a6057a78f84e63d509c5e295db20b56afb3
2021-05-12 14:01:59 +00:00
crc
763f06ac4c add if: and -if:
FossilOrigin-Name: 04cd5d82ce6ea0c9c98f05580bcb7cc2598c27accd6a648cacb98b063d72e1a5
2021-04-28 13:23:07 +00:00