Config::Irssi::Lexer - Yapp-compatible lexical analyzer for irssi-style config files.
use Config::Irssi::Lexer qw( mklexer ); my $lexer = mklexer(\*STDIN); my ($tok, $val) = $lexer->(); # $lexer is Yapp-compatible lexer.
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).
Returns an anonymous subroutine that will return ($tok, $val) pairs that it reads from the file handle $fh...
mklexer() by default.
Add support for lexing strings as well as filehandles.
Dylan William Hardison <firstname.lastname@example.org>
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.