Dylan William Hardison > Config-Irssi-Parser > Config::Irssi::Lexer

Download:
Config-Irssi-Parser-0.0.4.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

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.

syntax highlighting: