Great, thanks! I'll try it out tonight.
On Tue, Nov 3, 2009 at 8:09 PM, Alexander Burger wrot=
e:
> On Tue, Nov 03, 2009 at 07:27:47PM +0100, Henrik Sarvell wrote:
>> What we need is a test for > discarding/ignoring the first ">" when we do subsequent tills. That's
>> what I tried to do with an
On Tue, Nov 03, 2009 at 07:27:47PM +0100, Henrik Sarvell wrote:
> What we need is a test for discarding/ignoring the first ">" when we do subsequent tills. That's
> what I tried to do with an initial (till ">") but it didn't work, like
> this:
>
> (in "rss.xml"
> (while
> (from " (til
On Tue, Nov 03, 2009 at 05:58:20PM +0100, Henrik Sarvell wrote:
> Am I missing something? Won't the first (from) basically find the
> first instance of " match here am I not matching on the whole of the rest of the document?
No, I was talking about the return value of 'make'
(while (from "")
(
But the problem is that we can't use in the (from) since some
feeds will contain only, what do we do about that?
In most cases it will still be and then the subsequent test for
item (in the terminating tag) will of course return true and then we
get nothing.
I mean I don't understand how the a
Am I missing something? Won't the first (from) basically find the
first instance of "]*>")
(println
(make
(loop
(NIL (chain (till ">")))
(char)
(T (tail '`(chop "item") @)) ) ) ) ))
Maybe this is clearer, so obviously we can't use t
On Tue, Nov 03, 2009 at 04:24:55PM +0100, Henrik Sarvell wrote:
> (in "rss.xml"
>(while
> (from " (println
> (make
> (loop
>(NIL (chain (till ">")))
>(char)
>(T (tail '`(chop "item") @)) ) ) ) ))
>
> This will acc
I started with this approach yesterday, first in order to capture feed
type which I am now able to do.
I noticed that some rss feeds have attributes in their tags,
therefore the above won't work 100% of the time.
(in "rss.xml"
(while
(from "")))
(char)
(T (
On Sun, Nov 01, 2009 at 01:49:59PM +0100, Henrik Sarvell wrote:
> It's a good question with a very simple answer, many many feeds out
> there are completely broken, sometimes they don't conform to
> standards, that's a good scenario but often they have unmatched tags
> or unclosed attributes.
Ouch
It's a good question with a very simple answer, many many feeds out
there are completely broken, sometimes they don't conform to
standards, that's a good scenario but often they have unmatched tags
or unclosed attributes.
At first I tried using the xml function but I quickly discovered that
it bre
Hi Henrik,
> The problem is using from in combination with till repeatedly to parse
> input in order to for instance get at the contents of the
> elements, there is a twist though, the contents can contain more
> markup so a check is needed every time till encounters for instance <,
> if that one
Alex and I had a discussion on IRC regarding match and long lists,
here is a short recap and example of a string Alex can use instead of
that massive rss.xml I attached earlier.
The problem is using from in combination with till repeatedly to parse
input in order to for instance get at the content
On Fri, Oct 30, 2009 at 06:12:00PM +0100, Henrik Sarvell wrote:
> (dm twitter> (L)
> (use (@A @X @E @Z)
> (make
> (while (match '(@A "<" "s" "t" "a" "t" "u" "s" ">" @E "<" "/"
> "s" "t" "a" "t" "u" "s" ">" @Z) L)
>(let R (twitterEntry> This @E)
> (when R (li
What I'm subsequently doing further "down" in the code is a recursive
matching in order to get at the pieces I want, on the same list, I'll
give you an example:
(dm twitter> (L)
(use (@A @X @E @Z)
(make
(while (match '(@A "<" "s" "t" "a" "t" "u" "s" ">" @E "<" "/"
"s" "t" "a" "t" "u
Hi Henrik,
> segfault. Hope this helps.
Thanks. Unfortunately, I cannot reproduce it. I even checked with my
special GC check setup, where a garbage collection is performed before
each 'cons'. This usually shows errors in the data handling (though such
a test runs for hours).
Could it be a stac
14 matches
Mail list logo