Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Articles & Samples > C-Sharp > Compiler


Search:
What's New - What's Hot
Making the Compiler do the Work  Version: 0.00     Price: $0.00  
Total Hits: 15  |  Today: 0Author: sashan govender      Rating:  
Read Reviews | Write Review |  Your Rating: 

This was a program I wrote a while ago (2003) to demonstrate what can be done with template metaprogramming in C++. It’s based on Todd Veldhuilzen’s article [1] on template metaprograms. Basically a template metaprogram is something that the compiler runs to generate more code. It’s a way of getting the compiler to do the work for you. Additionally the template language is Turing complete which basically means that if a problem is computable then the language can be used to write an algorithm f...

An XML Compiler  Version: 0.00     Price: $0.00  
Total Hits: 43  |  Today: 0Author: Marc Clifton      Rating:  
Read Reviews | Write Review |  Your Rating: 

Over the last year and half, I have developed MyXaml into what I think is a fairly mature generic XML instantiation engine, I've written a "lite" version called MycroXaml, developed a simple utility that takes XML and generates the underlying imperative classes and properties suitable for instantiation by the declarative parser, and explored the strengths and weaknesses of declarative programming. One of the tools that was requested by many people, but missing from this suite, was the ability to...

JSBasic - a BASIC to JavaScript compiler     
Total Hits: 51  |  Today: 0Author: Daniel Flower      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, a translator is written which takes a program written in BASIC and converts it to JavaScript. The purpose of this is project is not just for the nostalgia of being able to write programs in BASIC again, but also to demonstrate how one can go about writing a compiler in C#. Being able to define a language and write a compiler for it will not only give you insight into how the programming languages you use work, but it's useful in a number of real-world scenarios, such as writing ...

.Net C# Tutorial Intermediate Language - MSIL     
Total Hits: 120  |  Today: 0Author: CoderSource      Rating:  
Read Reviews | Write Review |  Your Rating: 

Microsoft Intermediate Language (MSIL) is a platform independent language that gets compiled into platform dependent executable file or dynamic link library. It means .NET compiler can generate code written using any supported languages and finally convert it to the required machine code depending on the target machine....

How to Compile C# Programs and Compiler Switches     
Total Hits: 432  |  Today: 0Author: Saurabh Nandu      Rating:  
Read Reviews | Write Review |  Your Rating: 

You get a compiler CS0234 Error "The type or namespace 'WinForm' does not exist in the class or namespace 'System' " !!! You go through the code again and again and find no mistakes but still the compiler keeps on crying CS0234 Error. Frustrated you think its a Bug in CSharp (beta) and close down your project or many of you have to turn to the Newsgroups or Forums and wait for someone to provide you with some answers. I can predict this since I have answered many such queries on Forums and New...

A Simulator for Knuth's MIX Computer  Version: 0.00     Price: $0.00  
Total Hits: 11  |  Today: 0Author: George Tryfonas      Rating:  
Read Reviews | Write Review |  Your Rating: 

The MIX computer is an imaginary computer invented by Don Knuth in the 1960s in order to present his exposition on computer algorithms. As Knuth puts it, the use of an imaginary computer and machine language helps avoid distracting the reader with the technicalities of one particular computer system, and the focus remains on truths that have always been—and will always be—valid, independent of any kind of technological evolution or current trends....

Building a Dynamic LINQ to Entities Compiler (Part 1)  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: JasonShort      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, I will explain how to build a dynamic LINQ to Entities compiler for any database provider that supports the ADO.NET Entity Framework. Due to the wide range of technologies used in this article, it will be broken up into two parts as listed below....

A way to define system-wide compiler symbols to be used for all C# builds  Version: 0.00     Price: $0.00  
Total Hits: 18  |  Today: 0Author: PIEBALDconsult      Rating:  
Read Reviews | Write Review |  Your Rating: 

On occasion, when writing code that should compile cleanly with various versions of .net, we run into situations where we need to use conditional compilation.

There are two often-used methods to define symbols for this:
0) Put a #define within the code we are working on.
1) Create a project-wide symbol (via project properties)....

Simple PropertyComparer  Version: 0.00     Price: $0.00  
Total Hits: 65  |  Today: 0Author: Ion Botnari      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is about a simple PropertyComparer class that can be used to sort collections of objects by property of the objects in the collection:...

C# 4.0: dynamic’s compiler tricks  Version: 0.00     Price: $0.00  
Total Hits: 40  |  Today: 0Author: StormySpike      Rating:  
Read Reviews | Write Review |  Your Rating: 

So, I was curious today, I had some code that used dynamic and was wondering what the heck the compiler was doing on the back end. So, I wrote up a very small test program, and tore into it using Reflector. The version of Reflector I used still only decompiles to C# 3, so it happily displayed all of the inner workings to me without trying to hide any of it....

Obfuscation and Decompilation     
Total Hits: 173  |  Today: 0Author: /www.yoda.arachsys.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many people are concerned about the ability to decompile .NET programs into fairly readable C# or VB.NET code. This article aims to dispel some of the myths and give some options for developers who are worried....

Migrating Native Code to the .NET CLR     
Total Hits: 173  |  Today: 0Author: Don Box      Rating:  
Read Reviews | Write Review |  Your Rating: 

Despite the hopes of management, shareholders, or overly-ambitious developers, it is simply not possible to get every piece of software ever written to run as managed code in the Microsoft® .NET common language runtime (CLR). Given the shortage of programming talent, it is unlikely that many organizations will rewrite 100 percent of their existing Win32®-based, C, C++, Visual Basic® 6.0-based, or COM codebase no matter how compelling the new runtime may be. That means that the world of native co...

How to Compile C# Programs and Compiler Switches     
Total Hits: 1970  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Compiler CS0234 Error "The type or namespace 'WinForm' does not exist in the class or namespace 'System' ". You go through the code again and again and find no mistakes but still the compiler keeps on crying CS0234 Error. This article contains some tips and detail information on compiling C# programs....

JSBasic - A BASIC to JavaScript Compiler  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: Daniel Flower      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, a translator is written which takes a program written in BASIC and converts it to JavaScript. The purpose of this project is not just for the nostalgia of being able to write programs in BASIC again, but also to demonstrate how one can go about writing a compiler in C#....

CaptureConsole.DLL - A Universal Console Output Redirector for all Compilers  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: Elmue      Rating:  
Read Reviews | Write Review |  Your Rating: 

You find a lot of code on the internet to capture Console output.
But normally, you find only a class written for a specific programming language.
The big advantage of this easy to use DLL is that you can use it in ALL projects independent of the programming language or compiler....

Hacking the Mono C# Compiler.  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: Stefan Savev 2      Rating:  
Read Reviews | Write Review |  Your Rating: 

The original article describes how to grab the parse tree of C# code produced by the mono C# compiler. Unfortunately, the mono C# compiler code IS TOO HARD TO USE. Fortunately, another project CSharpDevelop (http://www.icsharpcode.net/OpenSource/SD/Default.aspx) provides a much better solution to parsing C#....

“Error loading pipeline assembly” compile error on Content Projects  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: Inaki Ayucar      Rating:  
Read Reviews | Write Review |  Your Rating: 

If when trying to compile a Content Project you see a “Error loading pipeline assembly” message, and don’t know why, keep reading:

As you already know, the Content Pipeline always executes locally in your Windows machine, to parse and process all the contents into the XNB files. If you don’t have this clear, I´d suggest you to read this Shawn Hargreaves blog post. The above error appears sometimes when you add in your Content Project a reference to a Windows Phone Game Library assembly, o...

How to compile and use Xapian on Windows with C#  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: Sean Goodpasture      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you're looking to build a search function into your website or application, there are a ton of choices out there. Xapian is one of those choices, and on the surface, it seems like a pretty good option as its feature list is appealing and complete. It also includes an indexer (omega) that can index, and add to the Xapian database, a long list of document formats which is extremely appealing once you start diving into actually building an index and search component....

Building a Dynamic LINQ to Entities Compiler (Part 2)  Version: 0.00     Price: $0.00  
Total Hits: 13  |  Today: 0Author: JasonShort      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, I will continue to explain how to build a dynamic LINQ to Entities compiler for any database provider that supports the ADO.NET Entity Framework. See part 1 of building a dynamic linq to entities compiler for background information. This part of the series will cover using the .NET CodeDom Compiler to dynamically execute LINQ queries against an EF model....

Code Snippet Compiler  Version: 0.00     Price: $0.00  
Total Hits: 44  |  Today: 0Author: Keith Barrow      Rating:  
Read Reviews | Write Review |  Your Rating: 

The application allows you to write, compile and run scratch code without the overhead of creating a whole VS project. It has been useful for me on the code project, when I want to make sure the code I provide is good. Prepare to say goodbye to ConsoleApp1, ConsoleApp2,.....,ConsoleAppn misery!...


1  2  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net