Name

Object::Relation::Lexer::Code - Lexer for Object::Relation search code

Synopsis

use Object::Relation::Lexer::Code qw/code_lexer_stream/;
my $stream = code_lexer_stream([
  name => NOT LIKE 'foo%',
  OR (age => GE 21)
]);

Description

This package lexes the data structure built by Object::Relation::Handle search operators and return a token stream that a Object::Relation parser can parse.

See Object::Relation::Parser::DB for an example.

code_lexer_stream;

my $stream = code_lexer_stream(\@search_parameters);

This function, exported on demand, is the only function publicly useful in this module. It takes search parameters as described in the Object::Relation::Handle documents and returns a token stream that Object::Relation parsers should be able to turn into an intermediate representation.

Copyright and License

Copyright (c) 2004-2006 Kineticode, Inc. <info@obj_relode.com>

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