code-generation

Generate C# entities from existing DB and Fluent NHibernate auto mapping

I'm working with an existing database that uses some really ugly conventions. I'd like to use NHibernate, and I think I can fix all these ugly DB conventions using Fluent NHibernate's auto mapping conventions. I'd like to avoid writing all the entity classes by hand. (This is where LINQ to SQL and SubSonic are appealing) Is it possib...

Auto-generated data layer vs. manully-written data layer in asp.net - which one is better?

I'm just wondering about an auto-generated data layer vs. a manually-coded data layer. Which one is better? ...

Code generation for Java JVM / .NET CLR

Hello, I am doing a compilers discipline at college and we must generate code for our invented language to any platform we want to. I think the simplest case is generating code for the Java JVM or .NET CLR. Any suggestion which one to choose, and which APIs out there can help me on this task? I already have all the semantic analysis don...

References on statemachine optimization and code generation?

As a follow-up to my state machines as a C++-like language extension question, I'd like some more help. My compiler has been extended to parse my state machine extensions and now I'm beginning semantic analysis and code generation. There is a description on this page. Can anyone point me to good references on state machine optimization...

is there a simple compiler for a small language

I am looking for a simple compiler that compiles a simple language, I need it to write a paper about it and to learn how compilers work, I am not looking for a sophisticated thing just a simple language (by simple I mean a small code because for example gcc is toooooo big). any help is appreciated. ...

Generating a client from WSDL.

Hi all, I was wondering if there is a (java?) API parsing a WSDL and returning a structure of the WSDL as well as a description of the schema. I know a tool like wsimport can generate the stubs for a java client but I would also like to create the graphical interfaces (java swing, html...) for sending and receiving some simple requests...

What are your best code generators?

Possible Duplicate: Whats the best code generator you have used Code generators are awesome. Our team use 'bake' from CakePHP project and it saves us tons of time in CRUD actions and other generic stuff - but I want to move on further and I want to have your ideas.. What are your best code generators? ...

Calling subclass properties in code-generated (via xsd.exe) classes

I'm trying to generate code from an XSD that has two complexTypes extending a common complexType. The inheritors have a common property named "value", which has different types. Of course I can't put it on my base type due to XSD rules. My intention is to polymorphically call the property on the base type which would invoke the right ...

Which should generate the HTML: JavaScript or php?

Merry Christmas and Seasons Greetings all! Quick question, looking for some recommendations. I have a site that will be requesting data from a database and displaying back to the user in a table. I am using jQuery (AJAX), php, and MySQL. Where is the best place to generate the HTML for the table to display the data: should the php gen...

Controlling metadata generation for multiple associations between the same tables in RIA Services

I am using .NET's RIA services/LinqToSql to expose my data to a Silverlight 3 client. In the database, an Item table has more than one association to another table, User. As an example, the Item table has both CreatedByUser and ModifiedByUser fields. When I use the RIA services wizard to create my DomainService (and metadata), I find ...

How can a build system support code generation but force declaration of all external dependencies?

I'm currently working on a build tool where its come up that it would be desirable to support code generation. Currently the tool simply compiles any out of date C and C++ source files it finds in the current folder when it's invoked. There's some support for custom build targets, which could create files, but the tool will ignore them b...

Erlang and Antlr

Is it possible to write an Antlr code generation target for Erlang? ...

Visual Studio 2008 class diagram creates empty properties, not autoproperties

I'm using a Class Diagram in Visual Studio 2008 to create some classes with properties. I notice that when I create a new property in the Class Diagram, it comes out in code like this: public DateTime DateBilled { get { throw new System.NotImplementedException(); } set { } } Yuck. I'd much rather it e...

Documenting auto-generated code

Hello, I use code-generation for my data access layer and Doxygen for documentation. My problem is that I can't add Xml comments on the generated classes since they will be overwritten as soon as I re-generate the code. To be more precise I can add Xml comments to my custom methods (which are in a separate file as partial classes) but I...

autogenerate jquery code

We all use and like that to handle click event for button we can just click it and write a handler with server code in C# or vb.net. But if we want to handle client event, javascript comes for help. And I wonder, how can we add designer ability to generate client handlers with javascript or some popular library like jquery. So how I s...

Open source product similar to Rational Software Architect

Hi, Please let me know open source product similar to rational software architect which automatically generates java base classes on completion of design. Thanks in advance. ...

Code generation tool/framework for PHP

As far as I know, many PHP frameworks use syntactic sugar to provide illusion of real functions. Some provide scaffolding/skeleton generation, which is limited. Syntactic sugar is slow and IDE/editors do not provide intellisense for Syntactic sugar functions/methods and member data. I'm wondering if there any tool/framework to generate P...

Are Visual Studio pre-build events guaranteed to finish before compiling starts?

I'm using a pre-build event in Visual Studio to run a batch (.bat) file that performs some code generation (specifically, I'm running SqlMetal.exe to generate LinqToSql code). Is the batch file guaranteed to finish before the compilation begins? Or does it run the batch asynchronously? Bottom line: I want to make sure the new code gets...

Assembly versus binary output

Is it better for a compiler to compile code to assembly language, or output binary machine code directly? Advantages of assembly language that I can think of off the top of my head: avoiding the need to learn the object file format, ease of debugging the backend. Advantage of binary: faster compile speed. How significant is this? Assum...

T4 Toolbox: How do I modify a pre-built template?

I'm using the T4 toolbox's Linq to SQL model to generate code, and I'd like to add some serialization properties to the code that it generates. I'm not sure how to modify the generator to do this. Would I modify the actual .tt file that is installed with the toolbox? Or can I add something to the .tt file that gets created for me? Or do ...