Devel::Tokenizer::C 0.05
Sponsored Links
Devel::Tokenizer::C 0.05 Ranking & Summary
File size:
0.011 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1206
Date added:
2006-07-06
Publisher:
Marcus Holland-Moritz
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.
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
Devel::Tokenizer::C 0.05 Keywords
C 0.05
DIRECTIVE
generate C source
C Source
Perl module
For Fast
Generate C
unknown
Goto
case
source
switch
tokenizer
Devel::Tokenizer::C
DevelTokenizerC
Devel::Tokenizer::C 0.05
Bookmark Devel::Tokenizer::C 0.05
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
counter strike source
source code
first source credit union
vitamin c sources
c source code
unknown news
citing internet sources
vitamin c source
tomb of the unknown soldier
c source code analysis
unknown comic
turbo c source codes
c source files
unknown hinson
casey affleck news
gotomycard
c source code for games
generate contact tables
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
Latest Software
Popular Software
Favourite Software