This project is read-only.

Project Description

COBOL the Barbarian is a multi-language .NET snippet compiler based on Jon Skeet's Snippy. The Barbarian compiles C# and VB, has a WPF user interface, and is written in COBOL. In principle it could be extended to compile additional .NET languages, as well as unmanaged code snippets.

Intended Use

The Barbarian is a lightweight utility for anyone who wants to compile and test short blocks of C# and VB.NET code. The adventurous user is encouraged to look under the hood and see how this has all been implemented in COBOL.

Runtime and Development Requirements

The Barbarian itself is lightweight, but to run it will require a few additional developer toys, which (except for the operating system) are available at no charge:

  1. Windows Vista/XP/2000 (any version), Windows 7 Pro, or Windows 7 Ultimate: Note that in Windows 7, Net Express 5.1 Personal Edition can only be installed in Windows XP Mode (which unfortunately is not available for Windows 7 Home). In order to work together in Windows 7, all software listed below must be installed in Windows XP Mode. Performance is not great in Windows XP Mode, but it does work.
  2. NET framework 3.5: Self-explanatory.
  3. Visual Studio 2008 or Visual Studio Shell: This is a prerequisite, without which Net Express will not install. Express editions of Visual Studio do not meet this requirement, but if necessary you can install the free Visual Studio Shell as follows:
    1. Download the integrated mode version of the shell here.
    2. Run the "installer". Note that all this does is extract the redistributable package.
    3. Navigate to the new folder, C:\VS 2008 Shell Redist\Integrated Mode, and run vside.enu.exe. This will install the Visual Studio Shell, along with some runtime components for applications developed with Visual C++. Once you have either Visual Studio 2008 or the Visual Studio Shell installed, you can go ahead and install Net Express.
  4. Micro Focus Net Express 5.1 Personal Edition: This free software is your source for the required Micro Focus COBOL runtime DLLs. It will also enable you to create your own managed COBOL projects in Visual Studio, and native COBOL programs in Net Express. Bear in mind that the Personal Edition of this compiler and COBOL runtime are for personal use only.

Having met the requirements above, you may now either download and extract the pre-built EXE, or build the Barbarian from source in Visual Studio 2008. If running Windows 7, please note that you will have to run Barbarian.exe in Windows XP Mode, or launch Visual Studio 2008 in Windows XP Mode.


History

COBOL the Barbarian is the successor to Add One Snippy, which was a straight port to COBOL of the C# code for Jon Skeet's Snippy. FxCop demanded a strong name for the assembly, hence COBOL the Barbarian.

Last edited Jan 1, 2012 at 5:22 AM by mfisher_ix, version 149