634 projects tagged "Code Generators"
SQL Construction Kit aims to provide a simple builder/factory pattern based approach to generating DML SQL for all popular RDBMS systems. Included builders are SelectBuilder, InsertBuilder, UpdateBuilder, and DeleteBuilder. It is much lighter weight than any of the ORM tools available, and is 100% Java. It is a complete re-factoring of code that has been in production use since 2001 (updated to use features of Java 6). Also included is a Facade patterned Database object that wraps a Datasource object. This provides an execution framework for the results of the Builder objects, which includes simplified transaction and batch management as well as the ability to transparently handle SQL exceptions in a default manner. The Database object also provides a simple object-oriented approach via wrappers around the database metadata.
Flex Bison C++ Template is a code template that can be used to integrate a Flex scanner and Bison parser pair into a modern C++ program. These two universal tools are very difficult to incorporate into a good C++ design. The template utilizes both Flex and Bison in C++ mode and their output are encapsulated into classes. Thus the lexer and parser become fully reentrant, and multiple distinct lexer-parser pairs can easily be linked into one binary. The code implements a simple infix-notation calculator as an example, which can be used as a starting-point for you to insert your grammar.
jsapigen generates glue code for embedding Mozilla's JavaScript engine (SpiderMonkey) into C applications. It uses a simple interface definition language to describe the connection between native C code and the JavaScript engine. This description is converted into C code, which can be compiled into an application.
PHP Form Validator is a simple, generic form validation script for use in PHP form processors. It contains a set of commonly required form validations. Using this script, it is quick and easy to add form validations to your PHP form processor. It can save you from repetitive coding of common form validations. Documentation and code samples are included.
Lookup Tables C Code Generator consists of two programs: mkhashtable for generating C source to match a set of integers, and mkstringswitch for creating a switch statement to match a set of strings. Both programs allow specifying result values and/or actions to be run when an input value matches. The generators are highly customizable.
Post Scriptum is a programming language for preparing PostScript documents and programs. The language is procedural, and uses classical control structures (functions, loops, and conditional statements) and commonly known data types (numbers, arrays, strings, and dictionaries). Its syntax is simple, clear, and easy to learn. The compiler translates programs written in Post Scriptum directly to a PostScript file, which can be than executed by a PostScript interpreter (such as Ghostscript), printed, or used as a procset, driver, or library.
CocoXml is a combination of programming language scanner/parser generator (defined by .atg) and XML language scanner/parser generator (defined by .xatg). The generated sources can be updated by updating the .atg or .xatg. Source inclusion, automatic indentation, and backslash newline are supported. Some real usable scanners and parsers are provided for CExpr, JSON, Kconfig, patch, and RSS.