]> gitweb.factorcode.org Git - factor.git/commitdiff
Fixing xmode?
authorDaniel Ehrenberg <littledan@Macintosh-103.local>
Thu, 29 Jan 2009 05:56:47 +0000 (23:56 -0600)
committerDaniel Ehrenberg <littledan@Macintosh-103.local>
Thu, 29 Jan 2009 05:56:47 +0000 (23:56 -0600)
basis/xmode/loader/syntax/syntax.factor

index 9b53000e026658a79c6639d3a3a4ef9d850ee715..f63191d5f6c164627b3001e2eed59fe14464461e 100644 (file)
@@ -31,7 +31,7 @@ SYMBOL: ignore-case?
 
 ! PROP, PROPS
 : parse-prop-tag ( tag -- key value )
-    "NAME" over at "VALUE" rot at ;
+    [ "NAME" attr ] [ "VALUE" attr ] bi ;
 
 : parse-props-tag ( tag -- assoc )
     child-tags
@@ -40,7 +40,7 @@ SYMBOL: ignore-case?
 : position-attrs ( tag -- at-line-start? at-whitespace-end? at-word-start? )
     ! XXX Wrong logic!
     { "AT_LINE_START" "AT_WHITESPACE_END" "AT_WORD_START" }
-    swap [ at string>boolean ] curry map first3 ;
+    [ attr string>boolean ] with map first3 ;
 
 : parse-literal-matcher ( tag -- matcher )
     dup children>string