Re: Parsing

new topic     » goto parent     » topic index » view thread      » older message » newer message

At 05:33 PM 4/7/97 PST, you wrote:

>Joe wrote:
>
>> I should know how to do this, but I don't. Could some one show me an
>> example of parsing stuff read in from a file. For example sake an
>> HTML file, and reading any <P>, <BR>, or <B> tags. Thanks.
>
>Here's a program that will read an HTML file, and return a sequence of token
>in the form:

<code>

Unfortunatly, with both of the code supplied, you are forgeting the fact
that the "<" and ">" symbols can be used without starting a tag and that an
end-of-line CAN be inside them. You'd have to make a program that checks for
the key words as well as the symbols.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The Reaper  (J. Lays)   http://www.geocities.com/TimesSquare/Alley/4444/
reaper at auracom.com      Check out my Euphoria Games page at:
            -= http://www.geocities.com/TimesSquare/Alley/4444/eugames.html
      ........................
     . .. -||..........__......  "There is a silence before a storm,
      . /  ||......../-- \\.::::  A calm that is spent in fear;
   . ..|   ||...... /    | |.:::  But if that time was spent running,
     .|  _-||.......||   / /.:::: There may be nothing to be afraid of."
    ..| |..||...... -\_- \ |\-.:::
     .| |.[< \ .../            \.::
      .||.|||\|\ |  -      - .  \.::::
     ...|.\|| |  \  |        |   |.:::.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu