Click here to Skip to main content
15,881,381 members
Articles / Programming Languages / C#

Coco Custom Tool for Visual Studio.NET

Rate me:
Please Sign up or sign in to vote.
4.64/5 (34 votes)
29 Oct 2005CPOL4 min read 130.6K   698   53  
Use the award winning Coco compiler's compiler directly from within Visual Studio
using System;
using EnvDTE;

namespace VsCoco
{
	/// <summary>
	/// Description r�sum�e de vsCocoParser.
	/// </summary>
	public class vsCocoScanner: at.jku.ssw.Coco.Scanner  
	{
		public vsCocoScanner(System.IO.Stream str) : base(str)
		{
		}

		public override void Write(string s)
		{
			vsCoco.OWp.OutputString(s);
		}

		public override void WriteError(string fmt, string file, int lin, int col, string err)
		{
			err=string.Format("{0}({1},{2}): {3}\r\n",file,lin,col,err);
			vsCoco.OWp.OutputString(err);
		}

		public override void WriteLine(string s)
		{
			vsCoco.OWp.OutputString(s);
			vsCoco.OWp.OutputString("\r\n");
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
France France
I am a French programmer.
These days I spend most of my time with the .NET framework, JavaScript and html.

Comments and Discussions