(parse x {\n}) vs (parse x "\n")

Started by kanen, March 15, 2012, 11:19:43 PM

Previous topic - Next topic

kanen

The title says it all.



I have a file called "foo"
foo
bar
baz
bif
doodle


> (length (parse (read-file "foo") "n"))
6
> (length (parse (read-file "foo") {n}))
1


What am I missing in this behavior?
. Kanen Flowers http://kanen.me[/url] .

Lutz

#1
Quoting with the curly brackets suppresses the backslash escape effect for special characters. See str in:



http://www.newlisp.org/downloads/newlisp_manual.html#type_ids">http://www.newlisp.org/downloads/newlis ... l#type_ids">http://www.newlisp.org/downloads/newlisp_manual.html#type_ids