]> gitweb.factorcode.org Git - factor.git/commitdiff
multiline: remove unused DELIMITED: word.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 21 Jul 2015 19:02:15 +0000 (12:02 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 21 Jul 2015 19:02:15 +0000 (12:02 -0700)
basis/multiline/multiline-docs.factor
basis/multiline/multiline-tests.factor
basis/multiline/multiline.factor

index e34b1679de3544caa39b05ec14c7fcb9f3343e9e..663494c50113ec9c8ccf6bb474593616c7df2007 100644 (file)
@@ -32,19 +32,6 @@ HELP: HEREDOC:
     }
 } ;
 
-HELP: DELIMITED:
-{ $syntax "DELIMITED: marker\n...text...\nmarker" }
-{ $values { "marker" "a word (token)" } { "text" "arbitrary text" } { "value" string } }
-{ $description "Returns a string delimited by an arbitrary user-defined token. This delimiter must be exactly the text beginning at the first non-blank character after " { $link POSTPONE: DELIMITED: } " until the end of the line containing " { $link POSTPONE: DELIMITED: } ". Text is captured until the exact delimiter string is found, regardless of where." }
-{ $warning "Whitespace is significant on the " { $link POSTPONE: DELIMITED: } " line." }
-{ $examples
-    { $example "USING: multiline prettyprint ;"
-               "DELIMITED: factor blows my mind"
-"whoafactor blows my mind ."
-                "\"whoa\""
-    }
-} ;
-
 HELP: parse-multiline-string
 { $values { "end-text" "a string delineating the end" } { "str" "the parsed string" } }
 { $description "Parses the input stream until the " { $snippet "end-text" } " is reached and returns the parsed text as a string." }
@@ -55,7 +42,6 @@ ARTICLE: "multiline" "Multiline"
 { $subsections
     POSTPONE: STRING:
     POSTPONE: HEREDOC:
-    POSTPONE: DELIMITED:
 }
 "Multiline comments:"
 { $subsections POSTPONE: /* }
index f03990113687cce1e00c77f9904a36637353df98..17ffb3d683b32e0aadba3ea31673d7a07bec82eb 100644 (file)
@@ -71,15 +71,6 @@ lol
 xyz
 ] unit-test
 
-
-{ "lol" }
-[ DELIMITED: aol
-lolaol ] unit-test
-
-{ "whoa" }
-[ DELIMITED: factor blows my mind
-whoafactor blows my mind ] unit-test
-
 <<
 SYNTAX: MULTILINE-LITERAL: parse-here suffix! ;
 >>
index 069c594b0dddb86b667f221691927fa662642d13..1c2c1d462dfac8ba3a856db332fa941c76dcb9db 100644 (file)
@@ -91,11 +91,3 @@ SYNTAX: HEREDOC:
         [ next-line ]
         [ parse-til-line-begins ]
     } cleave suffix! ;
-
-SYNTAX: DELIMITED:
-    lexer get {
-        [ skip-blank ]
-        [ rest-of-line ]
-        [ next-line ]
-        [ 0 (parse-multiline-string) ]
-    } cleave suffix! ;