NAME
Locale::Babelfish::Phrase::ParserBase - Babelfish abstract parser.
VERSION
version 2.12
METHODS
new
$class->new()
$class->new( $phrase )
Instantiates parser.
init
Initializes parser. Should not be called directly.
trim
$self->trim( $str )
Removes space characters from start and end of specified string.
char
$self->char
Gets character on current cursor position.
Will return empty string if no character.
next_char
$self->next_char
Gets character on next cursor position.
Will return empty string if no character.
to_next_char
$self->to_next_char
Moves cursor to next position.
Return new current character.
throw
$self->throw( $message )
Throws given message in phrase context.
add_to_piece
$parser->add_to_piece( @chars )
Adds given chars to current piece.
backward
$parser->backward
Moves cursor backward.
parse
$parser->parse()
$parser->parse( $phrase )
Parses specified phrase.
AUTHORS
Akzhan Abdulin <akzhan@cpan.org>
Igor Mironov <grif@cpan.org>
Victor Efimov <efimov@reg.ru>
REG.RU LLC
Kirill Sysoev <k.sysoev@me.com>
Alexandr Tkach <tkach@reg.ru>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2014 by REG.RU LLC.
This is free software, licensed under:
The MIT (X11) License