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.2 1999/06/12 19:13:08 mirar Exp $ +  * $Id: module.pmod.in,v 1.3 1999/06/12 19:44:30 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:119:    write("%*stag %O\n",level,"",t->name,);    if (sizeof(t->args))    write("%*s%-=*s\n",level+4,"",75-level,sprintf("%O",t->args));    debug(t->data,level);    }    }          private static object p=HTML();    - //! static void create() - //! static void create(string filename) + //! method void create() + //! method void create(string filename)   //! This object is created with this filename.   //! It's passed to all created tags, for debug and trace purposes.   //! note:   //! No, it doesn't read the file itself. See <ref>feed</ref>.       void create(void|string _file)    {    file=_file;       p->_set_tag_callback(got_tag);    p->_set_data_callback(lambda(object g,string data)    { if (data!="") res[0]+=({data}); return ({}); });    }    - //! static object feed(string s) - //! static array finish() - //! static array result(string s) + //! method object feed(string s) + //! method array finish() + //! method array result(string s)   //! Feed new data to the object, or finish the stream.   //! No result can be used until finish() is called.   //!   //! Both finish() and result() returns the computed data.   //!   //! feed() returns the called object.       object feed(string s)    {    p->feed(s);