]> gitweb.factorcode.org Git - factor.git/commitdiff
easy-help: Add 'List:'
authorEduardo Cavazos <dharmatech@finkelstein.stackeffects.info>
Thu, 25 Dec 2008 13:55:04 +0000 (07:55 -0600)
committerEduardo Cavazos <dharmatech@finkelstein.stackeffects.info>
Thu, 25 Dec 2008 13:55:04 +0000 (07:55 -0600)
extra/easy-help/easy-help.factor

index ddb8f210e4daa47e5f89c1b21a4c94a959bb2162..151e66380d38a337d52f497c896683a58ea18554 100644 (file)
@@ -96,3 +96,16 @@ IN: easy-help
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
+: List:
+
+  { $list }
+
+  ".." parse-multiline-string
+  string-lines
+  1 tail
+  [ dup "    " head? [ 4 tail ] [ ] if ] map
+  [ expand-markup ] map
+
+  append parsed
+
+  ; parsing