Main > Free Download Search >

Free generate code software for linux

generate code

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 6685
er2code

er2code


er2code is a tool to automatically generate code to make it easier to access a database from your program. more>>
er2code is a tool to automatically generate code to make it easier to access a database from your program. The script takes a database description file as input and generates a directory full of database wrapper files.


The code is generated based on an XML file, and should be pretty database and language neutral. Right now, though, only PHP with a MySQL database is supported.

If you are lucky enough to be using Python for your application, i really recommend SQLObject over er2code, it is much cleaner and works with all kinds of databases.

The project is based on a Database Idea i once had, i thought it was revolutionary then, but i was later proved wrong, again, by the SQLObject guys.

Overview

The focus of this project is to take some of the boring work of off the programmers shoulders. Writing database wrappers is boring and tedious, and as such can be the course of many "sleeping-while-typing" errors.

But on the bright side, boring and tedious often means that the process can be automated, hence this tool.

The main idea of er2code is that each relation (also called table by some people) in the database, is mapped to a class of the same name. This class then contains a number of methods for manipulating the attributes contained in the relation.

The approach taken by er2code is to have a long list of methods (these are called Function in er2code), these functions have some requirements regarding an attribute that must be satisfied in order for the code of the function to generated.

The code of the function contains plain text mixed with identifiers. Each of these identifiers can generate their "value" (a text string) based on the specific attribute they are applied on.

Of course it is not as simple as that, we havent considered constructs, how to delete rows in the table, and how to handle foreign relations, e.g. 1-to-many.

The layout of the a file is a bit like C structs, and a bit like SQL.

Each relation is defined inside its own struct block:

User {
... attributes go here ...
}

This statement will cause a User class to be created.
Each attribute is defined by the name of the attribute, followed by one or more whitespace separated attribute type definers, and terminated by a semicolon.

User {
id serial;
username string(30) default(noname) sort unique index;
password string(40);
email string(100);
}

This will cause the User relation to contain four attributes:
id which is of type serial, an automatically incremented integer that is defined as the primary key.

username which is a 30-character long string, it is defined as sort which means that when a method which lists Users is called, the result should be sorted by this attribute. It also is of type index, which means that it should be possible to find a User based on the value of this attribute.

password is a 40-character string.
email is a 100-character string.

This is all er2code needs to know to create a class for the User relation, and the DataBase class, which is the one you use to connect to the database, and to list and find relations.

If the description above is used with er2code to generate PHP code, it should make it possible to write code like the following:

// Connect to the database.
$db = new DataBase ();

$halfdan = $db->findUserByUsername ( halfdan );
if ( $halfdan != null ) {
print $halfdan->getUsername() . < . $halfdan->getEmail() . >;
}

// List is automatically sorted by username
foreach ( $db->listUser() as $user ) {
print < a href="user.php?id= . $user->getId() . " > . $user->getName() . < /a >;
}
<<less
Download (MB)
Added: 2007-02-23 License: GPL (GNU General Public License) Price:
974 downloads
generateDS.py 1.10a

generateDS.py 1.10a


generateDS.py generates Python data structures (for example, class definitions) from an XML Schema document. more>>
generateDS.py generates Python data structures (for example, class definitions) from an XML Schema document. These data structures represent the elements in an XML document described by the XML Schema.
It also generates parsers that load an XML document into those data structures. In addition, a separate file containing subclasses (stubs) is optionally generated. The user can add methods to the subclasses in order to process the contents of an XML document.
The generated Python code contains:
- A class definition for each element defined in the XML Schema document.
- A main and driver function that can be used to test the generated code.
- A parser that will read an XML document which satisfies the XML Schema from which the parser was generated. The parser creates and populates a tree structure of instances of the generated Python classes.
- Methods in each class to export the instance back out to XML (method export) and to export the instance to a literal representing the Python data structure (method exportLiteral).
The generated classes contain the following:
- A constructor method (__init__), with member variable initializers.
- Methods with names getX and setX for each member variable X or, if the member variable is defined with maxOccurs="unbounded", methods with names getX, setX, addX, and insertX.
- A "build" method that can be used to populate an instance of the class from a node in a minidom tree.
- An "export" method that will write the instance (and any nested sub-instances) to a file object as XML text.
- An "exportLiteral" method that will write the instance (and any nested sub-instances) to a file object as Python literals (text).
The generated subclass file contains one (sub-)class definition for each data representation class. If the subclass file is used, then the parser creates instances of the subclasses (instead of creating instances of the superclasses). This enables the user to extend the subclasses with "tree walk" methods, for example, that process the contents of the XML file. The user can also generate and extend multiple subclass files which use a single, common superclass file, thus implementing a number of different processes on the same XML document type.
This document explains (1) how to use generateDS.py; (2) how to use the Python code and data structures that it generates; and (3) how to modify the generated code for special purposes.
<<less
Download (0.11MB)
Added: 2007-05-12 License: MIT/X Consortium License Price:
898 downloads
Generate Numly Copyright 1.3

Generate Numly Copyright 1.3


Generate Numly Copyright is a Firefox extension that registers documents and blogs for Numly copyright. more>>
Generate Numly Copyright is a Firefox extension that registers documents and blogs for Numly copyright. Numly Numbers are unique identifiers of electronic media and recognized worldwide by electronic publishing companies and electronic content providers. Numly Numbers are simple and quick to generate and serve as branded identifier for individuals or companies authoring or distributing electronic content and media.

<<less
Download (0.006MB)
Added: 2007-06-06 License: MPL (Mozilla Public License) Price:
878 downloads
Convert::GeekCode 0.51

Convert::GeekCode 0.51


Convert::GeekCode is a Perl module that can convert and generate geek code sequences. more>>
Convert::GeekCode is a Perl module that can convert and generate geek code sequences.

SYNOPSIS

use Convert::GeekCode; # exports geek_decode()

my @out = geek_decode(q(
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/C/CM/CS/CC/ED/H/IT/L/M/MU/P/SS/TW/AT d---x s+: a-- C++++ UB++++$
P++++$ L+ E--->+ W+++$ N++ !o K w--(++) O-- M-@ !V PS+++ PE Y+>++
PGP++ t+ 5? X+ R+++ !tv b++++ DI+++@ D++ G++++ e-(--) h* r++(+) z++*
------END GEEK CODE BLOCK------
)); # yes, thats the authors geek code

my ($key, $val);
print "[$key]n$valnn" while (($key, $val) = splice(@out, 0, 2));

Convert::GeekCode converts and generates Geek Code sequences (cf. http://geekcode.com/). It supports different langugage codes and user-customizable codesets.
Since version 0.5, this module uses YAML to represent the geek code tables, for greater readability and ease of deserialization. Please refer to http://www.yaml.org/ for more related information.

The geekgen and geekdec utilities are installed by default, and may be used to generate / decode geek code blocks, respectively

<<less
Download (0.025MB)
Added: 2006-08-03 License: GPL (GNU General Public License) Price:
1180 downloads
QOF Generator 0.0.2

QOF Generator 0.0.2


QOF Generator is a project that generates C object source code from HTML/PHP or Perl/XML. more>>
QOF Generator is a project that generates C object source code from HTML/PHP or Perl/XML.

Generating new objects for the Query Object Framework is repetitive, tedious, and time consuming.

Qof Generator automates this process in PHP to build a working test program linked against QOF.

Objects are created from an HTML form using a temporary MySQL cache and exported with Makefile, ./autogen.sh, ChangeLog, README, C source code, and doxygen mark-up comments in a tarball built by the PHP code.

<<less
Download (0.017MB)
Added: 2007-02-16 License: GPL (GNU General Public License) Price:
983 downloads
Generic Test Processor 0.79.9d

Generic Test Processor 0.79.9d


Generic Test Processor is a processor for a generic test procedure language. more>>
Generic test processor is a language and processor for a language aiming to automatically apply or generate test source code in another language.
It is taken from a library of tests and data conversion operations.
These so generated instances shall be capable of inspecting a system by gathering data and screening this data to meet certain criteria, in other words to have certain attributes.
Enhancements:
- Fixed a bug in results reporting.
<<less
Download (0.081MB)
Added: 2005-04-14 License: GPL (GNU General Public License) Price:
1654 downloads
phpCodeGenerator 0.2.1

phpCodeGenerator 0.2.1


phpCodeGenerator is a free database driven website code generator. more>>
phpCodeGenerator is a free database driven website code generator. This application reads the database and generates a website with the ability to Create, List, Edit, Update, Delete and Search Records.

<<less
Download (MB)
Added: 2007-07-12 License: GPL (GNU General Public License) Price:
835 downloads
MyDBO Code Generator 2.1

MyDBO Code Generator 2.1


MyDBO is a powerful object-oriented code generator for PHP/MySQL Web application developers. more>>
MyDBO is a powerful object-oriented code generator for PHP/MySQL Web application developers.
It is designed to remove the hassle of implementing familiar database operations (select, update, insert, etc) over and over again when creating Web applications. MyDBO Code Generator creates code for accessing your database tables without you having to worry about connections or SQL queries.
It also allows you to approach your database in an object-oriented fashion, thus giving you real flexibility. It uses templates to generate code, so it is also possible to create your own templates.
Main features:
- Forget about accessing your database with SQL queries.
- Use the far more flexible object-oriented approach.
- Create logic foreign key links between your tables and navigate between your objects.
- Map the default MySQL date type to whatever you want.
- Create your own templates for unlimited possibilities.
- Fast and reliable.
- Should your database structure change, just re-generate the code.
- Easy to generate with the generation wizard.
- The generated code has standard comments for each class and functions.
- Free for personal and commercial use (GNU), Open source.
- Clean and tested code.
Enhancements:
- Boolean return values were added in API methods.
- A LIMIT argument was added in the tableCollector of the businessAPI plugin.
- The number of queries to execute when using Collector was reduced to 1.
- The use of database connections was optimized, and $DB is now a global variable.
- Memory is allowed increased to 16M.
- The ADOdb installation was customized to be minimal.
- instantAdmin was updated with a new API.
- Collector classes can now return the number of results only.
<<less
Download (0.12MB)
Added: 2006-02-17 License: LGPL (GNU Lesser General Public License) Price:
791 downloads
Java Units Generator and Converter 0.1

Java Units Generator and Converter 0.1


Java Units Generator and Converter (JUGC) is a Java tool and library for converting between measuring units. more>>
Java Units Generator and Converter (JUGC) is a Java tool and library for converting between measuring units.
It makes it possible to define units, their relationships and translations in files, to generate code from those definitions and deploy the generated code as a library in a Java project.
The generated code can then be used to convert values from one unit to another.
Enhancements:
- This initial version does the basic conversions using double precision floating point.
<<less
Download (0.010MB)
Added: 2007-01-12 License: BSD License Price:
1015 downloads
Php Object Generator 3.0

Php Object Generator 3.0


PHP Object Generator (POG) is a PHP code generator which generates clean and tested object oriented code for your PHP4/PHP5. more>>
Php Object Generator on short POG is an open source PHP code generator which automatically generates clean & tested Object Oriented code for your PHP4/PHP5 application.
Over the years, we realized that a large portion of a PHP programmers time is wasted on repetitive coding of the Database Access Layer of an application simply because different applications require different objects.
By generating PHP objects with integrated CRUD methods, POG gives you a head start in any project and saves you from writing and testing SQL queries. The time you save can be spent on more interesting areas of your project. But dont take our word for it, give it a try!
Main features:
- Generates clean & tested code
- Generates CRUD methods
- Compatible with PHP4 & PHP5
- Compatible with PDO
- Free for personal use
- Free for commercial use
- Open Source
Enhancements:
- POG now fetches result set arrays where possible (which provides a big performance boost).
- Data encoding is handled within the database.
- A new plugin interface is used.
- A data encoding sanity check was added to setup.
- Siblings can be deleted without deleting children.
- Getlist() accepts column names as filters.
- Getlist(), GetChild(), and GetSibling() return all results if no arguments are passed.
- A database wrapper class for PDO was added.
- The PDO performance was improved.
- The plugin API, POG base API, and database API were made uniform to prevent plugin versioning.
<<less
Download (1.0MB)
Added: 2007-07-26 License: BSD License Price:
516 downloads
php_qrencode 0.1

php_qrencode 0.1


php_qrencode is a PHP extension to generate qrcode. more>>
php_qrencode is a PHP extension to generate qrcode. The project is based on libqrencode.

only 2 function to generate qr code.

< code >
$qr = qr_encode (test for qrcode);
qr_save ($qr, 1.png);
< /code >

or you can output direct to stdout.

< code >
$qr = qr_encode (test for qrcode);
header ("Content-type: image/PNG");
qr_save ($qr);
< /code >

resource = qr_encode (string $text, [ int $version, int $mode, int $casesensitive]);

bool = qr_save (resource $qr, [ string $filename] );
<<less
Download (0.006MB)
Added: 2007-04-26 License: BSD License Price:
916 downloads
PHP Active Code Library 0.10

PHP Active Code Library 0.10


PHP Active Code Library (ACL) is a PHP 5 class used to store and call PHP files that are stored in a database. more>>
PHP Active Code Library (ACL) is a PHP 5 class used to store and call PHP files that are stored in a database.

The files are stored in a plain text field and not a binary field. PHP ACL also takes care of include/require calls.

If a file includes another file stored in the database, PHP ACL takes care of getting, generating, and including that file.
<<less
Download (0.013MB)
Added: 2006-07-27 License: GPL (GNU General Public License) Price:
1191 downloads
JSCoverage 0.2

JSCoverage 0.2


JSCoverage is a tool that generates code coverage statistics for JavaScript programs. more>>
JSCoverage is a tool that generates code coverage statistics for JavaScript programs.
JSCoverage works by instrumenting the JavaScript code used in web pages. Code coverage statistics are collected while the instrumented JavaScript code is executed in a web browser.
JSCoverage works with any modern standards-compliant web browser - Internet Explorer, Firefox, or Opera, on Windows or Linux.
This project is free software, distributed under the GNU General Public License.
Enhancements:
- This release features a new tabbed user interface.
<<less
Download (1.1MB)
Added: 2007-07-09 License: GPL (GNU General Public License) Price:
837 downloads
GNU Gengen 1.1

GNU Gengen 1.1


GNU Gengen (GENerator GENerator) is a tool that, starting from a parameterized text, called template. more>>
GNU Gengen (GENerator GENerator) is a tool that, starting from a parameterized text, called template, generates a text generator that can substitute parameters with values.
At the moment Gengen can generate C++ or C code; however other target languages are under development (e.g., Java).
This project is free software; you are free to use, share and modify it under the terms of the GNU General Public License.
Simple example
Say you are writing a C/C++ program and at some point your program has to generate the following code:
if (i < 10)
printf("the value of i is %d", i);
It is not so difficult to write this piece of C++ code:
cout<<less
Download (0.32MB)
Added: 2007-01-15 License: GPL (GNU General Public License) Price:
1012 downloads
genproto 0.4.1

genproto 0.4.1


genproto a tool that generates prototypes from C/C++ code. more>>
genproto generates prototypes from C/C++ code. It does not touch the original files, and the output format can be changed via printf-style format strings.

Unlike cproto it does not rely on external programms, such as gcc or cpp.

Example

me@home:~/src/genproto-0.2> ./genproto main.c
/* generated by genproto */

void Usage(char *name);
char * CharCopy(char *buf, int len);
char * AddTokens(char **TokenList, int FirstToken, int LastToken);
void AddPrototype(char **TokenList, int ClassNamePos, int FunctionNamePos, int ParamPos);
void ScanOneFile(void);
void SortPrototypes(struct function **T, int Gauche, int Droite);
void Swap(struct function **T, int i, int j);
int CompareFunctions(struct function *pF1, struct function *pF2);
void CopyListToTable(void);
void PrintOnePrototype(struct function *pF);
void PrintPrototypes(void);
void DeletePrototypes(void);
void MyExit(void);
void * MyAlloc(size_t size);
int main(int argc, char **argv);
<<less
Download (0.027MB)
Added: 2005-04-22 License: Freely Distributable Price:
1645 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5