Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.476.246 Times

Devel::Tokenizer::C 0.05

  Date Added: June 02, 2010  |  Visits: 745

Devel::Tokenizer::C

Report Broken Link
Printer Friendly Version


Product Homepage
Download (91 downloads)

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..

Requirements: No special requirements
Platforms: Linux
Keyword: C Source Case Develtokenizerc Directive Goto Keyword Libraries Perl Module Programming Source Unknown
Users rating: 0/10

License: Freeware Size: 11.26 KB
DEVEL::TOKENIZER::C RELATED
ATL Components  -  HS NMEA GPS C Source Library 1.0 1.0
HS GPS is a software library (with full C source code) which provides access to a NMEA-183 compliant GPS receiver via a serial communications port, decoding NMEA sentences: $GPGGA, $GPGSA, $GPGSV, $GPGLL, $GPRMC and $GPVTG. Decoded parameters...
309 KB  
ATL Components  -  HS Compress C Source Library 1.0 1.0
HS Compress is a software library (supplied with full C source code) which provides a programmer with a lossless compression / decompression algorithm based on RLE (runtime length encoding) The library may be used in telecommunications...
324 KB  
Delphi Utilities  -  HS Compress C Source Library 1.0
HS Compress is a software library (supplied with full C source code) which provides a programmer with a lossless compression / decompression algorithm based on RLE (runtime length encoding) The library may be used in telecommunications application...
324 KB  
Delphi Utilities  -  HS NMEA GPS C Source Library 1.0
HS GPS is a software library (with full C source code) which provides access to a NMEA-183 compliant GPS receiver via a serial communications port, decoding NMEA sentences: , , , , and . Decoded parameters include: time, date, position, altitude,...
309 KB  
Integration Tools  -  C,C++ Source Code Directory Submitter 1.00
This softwre can help you to find your most needed C,C++ source code from the C,C++ source code directory cprogram.org.You can also submit your source code in web to spread and test your knowledge on programming.Submit C,C++ source code to this...
373 KB  
Libraries  -  HS Crypto C Source Library 1.0
HS Crypto is a software library in C (supplied with full source code) which offers a programmer an API to several data encryption / decryption algorithms. Implemented methods include the use of 2 either pre-defined or dynamically generated...
331 KB  
Development Editors  -  MISRA C Rule Checker SQMlint 1.03 Release 00B
SQMlint assists developers in source code review through automatic inspection and helps to develop high-quality C source codes efficiently. Furthermore, because problem codes can be detected by only adding compile options, the user can correct...
 
Libraries  -  Inline::C 0.44
Inline::C is a Perl module that can Write Perl Subroutines in C. Inline::C is a module that allows you to write Perl subroutines in C. Since version 0.30 the Inline module supports multiple programming languages and each language has its own...
92.16 KB  
Libraries  -  SPUC 2.3.1
Signal Processing using C++ (SPUC) is a C++ source code library of DSP and digital communication classes and functions useful for system modeling, software prototyping, and simulation. The objective of SPUC is to provide the Communications...
460.8 KB  
Code Management Tools  -  cproto 4.7e
cproto generates function prototypes for functions defined in the specified C source files to the standard output. The function definitions may be in K&R or ANSI C style, or in lint-library form. cproto can also convert function definitions in...
143.36 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB