Main > Programming > Libraries >

Devel::Tokenizer::C 0.05

Devel::Tokenizer::C 0.05

Sponsored Links

Devel::Tokenizer::C 0.05 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.011 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1206
Date added: 2006-07-06

Devel::Tokenizer::C 0.05 description

Devel::Tokenizer::C is a Perl module that can generate C source for fast keyword tokenizer.

SYNOPSIS

use Devel::Tokenizer::C;

$t = new Devel::Tokenizer::C TokenFunc => sub { "return U$_[0];n" };

$t->add_tokens(qw( bar baz ))->add_tokens([for]);
$t->add_tokens([qw( foo )], defined DIRECTIVE);

print $t->generate;

The Devel::Tokenizer::C module provides a small class for creating the essential ANSI C source code for a fast keyword tokenizer.

The generated code is optimized for speed. On the ANSI-C keyword set, its 2-3 times faster than equivalent code generated with the gprof utility.

The above example would print the following C source code:
switch (tokstr[0])
{
case b:
switch (tokstr[1])
{
case a:
switch (tokstr[2])
{
case r:
if (tokstr[3] == )
{ /* bar */
return BAR;
}

goto unknown;

case z:
if (tokstr[3] == )
{ /* baz */
return BAZ;
}

goto unknown;

default:
goto unknown;
}

default:
goto unknown;
}

case f:
switch (tokstr[1])
{
case o:
switch (tokstr[2])
{
#if defined DIRECTIVE
case o:
if (tokstr[3] == )
{ /* foo */
return FOO;
}

goto unknown;
#endif /* defined DIRECTIVE */

case r:
if (tokstr[3] == )
{ /* for */
return FOR;
}

goto unknown;

default:
goto unknown;
}

default:
goto unknown;
}

default:
goto unknown;
}

So the generated code only includes the main switch statement for the tokenizer. You can configure most of the generated code to fit for your application.

Devel::Tokenizer::C 0.05 Screenshot

Advertisements

Devel::Tokenizer::C 0.05 Keywords

Bookmark Devel::Tokenizer::C 0.05

Hyperlink code:
Link for forum:

Devel::Tokenizer::C 0.05 Copyright

WareSeeker periodically updates pricing and software information of Devel::Tokenizer::C 0.05 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Devel::Tokenizer::C 0.05 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
String::Tokenizer is a simple string tokenizer. Free Download
Devel::LeakTrace is a Perl module to indicate where leaked variables are coming from. Free Download
Devel::Messenger is a Perl module who let your code talk to you. Free Download
Devel::Monitor is a Perl module that can monitor your variables/objects for memory leaks. Free Download
Devel::Pointer is a Perl module that can fiddle around with pointers. Free Download
Devel::Carnivore is a Perl module to spy on your hashes (and objects). Free Download
Devel::TraceLoad is a Perl module to trace loadings of Perl Programs. Free Download
Devel::DumpSizes is a Perl module to dump the name and size in bytes of variables that are available at a give point in a script Free Download