]> gitweb.factorcode.org Git - factor.git/commitdiff
infix: removing alternate syntax due to use of multiline strings...
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 4 Apr 2013 22:17:14 +0000 (15:17 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 4 Apr 2013 22:17:50 +0000 (15:17 -0700)
extra/infix/infix.factor

index 9c2613004adc3e9e5433fcd8d6fb66c4f202b7e8..8b15f1f3646d053d8d9440da0c5dd588f891e4a7 100644 (file)
@@ -112,14 +112,11 @@ M: ast-function infix-codegen
     [ arguments>> [ arguments-codegen ] [ length ] bi ]
     [ name>> ] bi find-and-check ;
 
-: [infix-parse ( end -- result/quot )
+: parse-infix-quotation ( end -- result/quot )
     parse-multiline-string build-infix-ast
     infix-codegen prepare-operand ;
 
 PRIVATE>
 
 SYNTAX: [infix
-    "infix]" [infix-parse suffix! \ call suffix! ;
-
-SYNTAX: infix[
-    "]" [infix-parse suffix! \ call suffix! ;
+    "infix]" parse-infix-quotation suffix! \ call suffix! ;