NAME

Parse::Token::Lite::Builder - DSL for Parse::Token::Lite

VERSION

version 0.200

SYNOPSIS

use Parse::Token::Lite;
use Parse::Token::Lite::Builder;
use Data::Printer;
use Data::Dumper;

my $ruleset = ruleset{
	match qr/123/ => sub{
		name 'BEGIN';
		start 'TEST';
	};

	on 'TEST' => sub{
		match qr/567/ => sub{
			name 'END';
			end 'TEST';
		};

		match qr/./ => sub{
			name 'NUM';
		};
	};
};

AUTHOR

khs <sng2nara@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by khs.

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