Posts tagged with 'programming'

99 Bottles of Beer in COBOL .NET

The Wildcat COBOL Compiler for .NET can now compile the 99 Bottles of Beer program, and the output runs perfectly on both Mono and Microsoft .NET. Version 0.1.2 of the compiler is available for download here. The program that I compiled is slightly different to the one I found on the Web - two of the strings in the Working Storage section are defined differently.

Almost There

As of this evening, the Wildcat COBOL Compiler for .NET is now able to compile the 99 Bottles of Beer program, although when executed, the PERFORM loop runs one extra time at the end producing the following output:

Two bottles of beer on the wall, two bottles of beer! Take one down, pass it around, one bottles of beer on the wall!

One bottles of beer on the wall, one bottles of beer! Take one down, pass it around, one bottle of beer on the wall!

One bottle of beer on the wall, one bottle of beer! Take that down, pass it around, no more bottles of beer on the wall!

I'll fix that later when I'm not so tired, and get the next build online.

Wildcat COBOL Compiler 0.1.1

The first Wildcat COBOL compiler for .NET build has been made avialable here this evening. Some more general information is available here. This release has the ability to compile the simple "Hello World" program. I intend releasing another build fairly soon, with more complete support for variable subscripts and substrings - the only things preventing it from compiling the 99 bottles of beer program at the moment.