Regex-based lexer in C#.  Based on work by Drew Miller: http://blogs.msdn.com/b/drew/archive/2009/12/31/a-simple-lexer-in-c-that-uses-regular-expressions.aspx