pike.git
/
src
/
modules
/
Parser
/
module.pmod.in
version
»
Context lines:
10
20
40
80
file
none
3
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>"<gat&
gt;&
nbsp;<gurka&
gt;&
nbsp;</gurka&
gt;&
nbsp;<banan&
gt;&
nbsp;<kiwi&
gt;&
nbsp;</gat
>
"</tt>
+
//! <tt>"<gat
>
<gurka
>
</gurka
>
<banan
>
<kiwi
>
</gat
>
"</tt>
//! results in //! <pre> //! ({ //! tag "gat" object with data: //! ({ //! tag "gurka" object with data: //! ({ //! " " //! }) //! tag "banan" object with data: