Compare commits

..

2 commits

Author SHA1 Message Date
crc
79990effa3 add describe to easily add descriptions in the source
FossilOrigin-Name: 8f8b7ba14d61c2ff21998f9045d53b47019114f9769a5016048a8a51c1764c42
2024-09-12 18:58:36 +00:00
crc
c0cd63c34f add d:words-missing-details
FossilOrigin-Name: ee2b08e111e4ae15d3a0738022e1fdfa9b84067cd7019f273cc0337275d91e05
2024-09-12 18:54:02 +00:00
6 changed files with 3088 additions and 3055 deletions

View file

@ -45,6 +45,8 @@
- add `d:describe` - add `d:describe`
- stack comments & descriptions are now part of the standard - stack comments & descriptions are now part of the standard
system image system image
- add `d:words-missing-details`
- add `describe`
- library - library

View file

@ -1,6 +1,11 @@
~~~ ~~~
:d:set-description (:ss-) :d:set-description (:ss-)
d:lookup dup n:-zero? [ d:descr &s:keep dip store ] &drop-pair choose ; d:lookup dup n:-zero? [ d:descr &s:keep dip store ] &drop-pair choose ;
'add_a_description_to_a_word 'd:set-description d:set-description
:describe (:s-)
s:keep d:last d:descr store ;
'add_a_description_for_the_most_recently_defined_word describe
~~~ ~~~
~~~ ~~~

View file

@ -6,7 +6,7 @@ each of the provided words are found in.
## Standard Library ## Standard Library
~~~ ~~~
:d:set-source (ss-) &s:dedup dip d:lookup d:source store ; :d:set-source (:ss-) &s:dedup dip d:lookup d:source store ;
'interface/sources.retro 'd:set-source d:set-source 'interface/sources.retro 'd:set-source d:set-source
~~~ ~~~

View file

@ -13,7 +13,7 @@ comment format this introduces to add them inline.
}} }}
:d:describe (:s-) :d:describe (:s-)
d:lookup nl d:lookup 0; nl
dup 'Name:_____ s:put d:name s:put nl dup 'Name:_____ s:put d:name s:put nl
dup 'Address:__ s:put d:xt fetch n:put nl dup 'Address:__ s:put d:xt fetch n:put nl
dup 'Class:____ s:put d:class fetch dup n:put d:lookup-xt dup n:-zero? [ sp d:name s:put ] &drop choose nl dup 'Class:____ s:put d:class fetch dup n:put d:lookup-xt dup n:-zero? [ sp d:name s:put ] &drop choose nl

View file

@ -36,3 +36,11 @@ deal with this, `d:words-beginning-with` is provided.
here s:copy [ d:name display-if-left ] d:for-each ; here s:copy [ d:name display-if-left ] d:for-each ;
}} }}
~~~ ~~~
~~~
:d:words-missing-details (:-)
'D.Stack: s:put nl [ dup d:stack fetch n:zero? [ d:name s:put sp ] &drop choose ] d:for-each nl
'A.Stack: s:put nl [ dup d:astack fetch n:zero? [ d:name s:put sp ] &drop choose ] d:for-each nl
'F.Stack: s:put nl [ dup d:fstack fetch n:zero? [ d:name s:put sp ] &drop choose ] d:for-each nl
'Desc: s:put nl [ dup d:descr fetch n:zero? [ d:name s:put sp ] &drop choose ] d:for-each nl ;
~~~

File diff suppressed because it is too large Load diff