]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/annotations/annotations.factor
factor: trim using lists
[factor.git] / extra / annotations / annotations.factor
index e463206e4fee99be771bc19e54d7c8714aecd973..2aa7174720a96767d7085edb9153e0bdf92eb1c3 100644 (file)
@@ -1,7 +1,6 @@
 ! (c)2009 Joe Groff, Doug Coleman. see BSD license
-USING: accessors combinators.short-circuit definitions functors
-kernel lexer namespaces parser prettyprint tools.crossref
-sequences words ;
+USING: accessors combinators.short-circuit functors kernel lexer
+namespaces sequences tools.crossref words ;
 IN: annotations
 
 <<
@@ -14,7 +13,7 @@ IN: annotations
     [ { [ word? ] [ vocabulary>> "annotations" = ] } 1&& not ]
     filter ;
 
-FUNCTOR: define-annotation ( NAME -- )
+<FUNCTOR: define-annotation ( NAME -- )
 
 (NAME) DEFINES (${NAME})
 !NAME  DEFINES !${NAME}
@@ -31,7 +30,7 @@ SYNTAX: !NAME (parse-annotation) \ (NAME) suffix! ;
 : NAMEs. ( -- )
     NAMEs sorted-definitions. ;
 
-;FUNCTOR
+;FUNCTOR>
 
 CONSTANT: annotation-tags {
     "XXX" "TODO" "FIXME" "BUG" "REVIEW" "LICENSE"
@@ -41,4 +40,3 @@ CONSTANT: annotation-tags {
 annotation-tags [ define-annotation ] each
 
 >>
-