pike.git / src / modules / Parser / module.pmod.in

version» Context lines:

pike.git/src/modules/Parser/module.pmod.in:1:   /* -  * $Id: module.pmod.in,v 1.4 1999/06/12 19:45:50 mirar Exp $ +  * $Id: module.pmod.in,v 1.5 1999/06/12 19:51:38 mirar Exp $    *    */      inherit @module@;      //! module Parser      class SGML   //! class SGML   //! This is a handy simple parser of SGML-like
pike.git/src/modules/Parser/module.pmod.in:15:   //!   //! It's used like this:   //! <pre>array res=Parser.SGML()->feed(string)->finish()->result();</pre>   //!   //! The resulting structure is an array of atoms,   //! where the atom can be a string or a tag.   //! A tag contains a similar array, as data.   //!   //! Example:   //! A string - //! <tt>"&lt;gat&gt;&nbsp;&lt;gurka&gt;&nbsp;&lt;/gurka&gt;&nbsp;&lt;banan&gt;&nbsp;&lt;kiwi&gt;&nbsp;&lt;/gat&gt;"</tt> + //! <tt>"&lt;gat>&nbsp;&lt;gurka>&nbsp;&lt;/gurka>&nbsp;&lt;banan>&nbsp;&lt;kiwi>&nbsp;&lt;/gat>"</tt>   //! results in   //! <pre>   //! ({   //! tag "gat" object with data:   //! ({   //! tag "gurka" object with data:   //! ({   //! " "   //! })   //! tag "banan" object with data: