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 <dhardison@cpan.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.
To install Config::Irssi::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Irssi::Parser
CPAN shell
perl -MCPAN -e shell install Config::Irssi::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.