codeslower.com Savor Your Code.

ICFP 2009 Programming Contest - WIP

From the department of possibly bad ideas, I'm posting my continuing work on this year's ICFP programming challenge. Feel free to follow along on my contest diary. You can even get the source, but I don't make any promises about it working. If you want to jump in feel free to drop me a line!

Update: Syntax Coloring in Intellipad

I previously posted a sample showing how to create a plugin for Intellipad (shipped with the Microsoft "Oslo" SDK) which would support syntax coloring and error highlighting for files written in your own Mg-defined language. That sample worked with the previous release of the SDK. Now that the January 2009 release has come out, the sample needs a few minor updates.

The code for the updated sample is ...

My Oslo Christmas List

Oslo arrived just in time for Halloween, and it brought many more treats than tricks. Now that I've had some time to play with M, Mg, Intellipad, and the rest, I've got a list I'd like to see Santa bring. I've spent the most time with Mg (also known as "MGrammar"), so I'll focus on it.

For those who aren't familiar, a ...

A Zip Implementation in C#

Over on his B# blog, Bart De Smet recently showcased the new Zip method that will be added to LINQ in C# 4.0. He starts by giving an implementation of Zip built out of existing operators and asks for alternatives. This post is about my version.

For those who aren't familiar with Zip, it takes two lists and "zippers" them together. In Haskell, the Prelude zip ...

Syntax Coloring for Your Custom Mg Language with Intellipad

So, you've downloaded the Oslo SDK and you've created your own custom grammar using Mg, but there is one piece missing -- getting Intellipad to automatically provide error highlighting and syntax coloring for you. "Tree Preview Mode" will highlight text in its "DynamicParserMode" buffer, but there isn't a way to tell Intellipad to apply a specific Mg grammar to a specific file. This article will show ...