XML parser
XML parser to read in the emotes and command files for the messageHandler
notably
Copyright (c) 2002 Bruno Boettcher
emoteparser.pm is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- CTOR
-
instantiation of the emoteparser
- init
-
initialisation of the emoteparser
- parse
-
takes a filename and the 2 references to the translation tables, and parses
it, you need 2 since you surely want to go in both directions, means tag to
message, and trigger to tag... you can use both independently, since they share
the actual languge definition hash... don't forget to initalize the refs since
the sub fills them, if there were undef, they will be lost...
- isa
-
issue the type of this object
- version
-
issue the version of this module
- debug
-
issue debugging messages to the console
- emote
-
Callback for an opening emote tag
-
Is the first useful tag of the emotes env, since it holds the definition for
one type of reactions
- emotes
-
this is invoqued when the starting tag of the emotes env is called
- emotes_
-
this is invoqued when the ending tag of the emotes env is called
- lang
-
Begin of a language specific section, now come for a given tag the different
planned reactions
- lang_
-
exiting the lang env, mainly to reset the setting to a state where the next
lang section finds a clean env
- mode
-
last part of the emotes parsing, here we have one line per type of reaction per
type of user
- mode_
-
close the mode parsing, append to reply any dangling text and clear that buffer
- text
-
some raw text comes in, store it and let the elements handle that...
- other
-
some unkown text comes in, store it and let the elements handle that...
Bruno BÖTTCHER <bboett at adlp.org>
zebot home page http://www.freesoftware.fsf.org/zebot/
Net::IRC,
RFC 1459,
http://www.irchelp.org/,
http://poe.perl.org/
http://www.cs.cmu.edu/~lenzo/perl/,
http://www.infobot.org/,