Re: can I know how to write a html parser in C
From: Daniel Bruce (ircubic_at_gmail.com)
Date: 02/26/05
- Next message: Chris Torek: "Re: #ifdef vs #if vs #if defined"
- Previous message: infobahn: "Re: C portability is a myth"
- In reply to: Walter Roberson: "Re: can I know how to write a html parser in C"
- Next in thread: Walter Roberson: "Re: can I know how to write a html parser in C"
- Reply: Walter Roberson: "Re: can I know how to write a html parser in C"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 26 Feb 2005 07:44:33 +0100
Walter Roberson wrote:
> State 2: recognize and discard whitespace (including newline).
> When you get the first non-whitespace character, then if you had
> no whitespace or if tolower(character) is not 'h' then transit to state 4
> else transit to state 5
<snip>
> State 5: you have recognized up to "<img h". recognize and accept
> characters that match "ref=\"" and then enter url acceptance mode;
> if you hit something else, go to state 4
<snip>
Just a slight nitpick on a seemingly good text(I have no idea about the subject
myself, so can't really say anything about the quality of the text :)
I was under the impression that image URLs were stored in the src attribute, and
not the href one. :) Easy to switch anyways.
- Next message: Chris Torek: "Re: #ifdef vs #if vs #if defined"
- Previous message: infobahn: "Re: C portability is a myth"
- In reply to: Walter Roberson: "Re: can I know how to write a html parser in C"
- Next in thread: Walter Roberson: "Re: can I know how to write a html parser in C"
- Reply: Walter Roberson: "Re: can I know how to write a html parser in C"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|