The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Config::Irssi::Lexer - Yapp-compatible lexical analyzer for irssi-style config files.

SYNOPSIS

  use Config::Irssi::Lexer qw( mklexer );
  my $lexer = mklexer(\*STDIN);

  my ($tok, $val) = $lexer->();
  # $lexer is Yapp-compatible lexer.

DESCRIPTION

This is a lexical analyzer for Config::Irssi::Parser. Well, actually, it has a function which returns a newly-created anonymous subroutine that is the actual lexer (which behaves like a generator).

FUNCTIONS

mklexer($fh)

Returns an anonymous subroutine that will return ($tok, $val) pairs that it reads from the file handle $fh...

EXPORTS

mklexer() by default.

TODO

Add support for lexing strings as well as filehandles.

AUTHOR

Dylan William Hardison <dhardison@cpan.org>

COPYRIGHT

Copyright (C) 2004 by Dylan William Hardison

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.