Created
April 15, 2014 01:50
-
-
Save ryanrousseau/10695524 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using ScriptCs.Contracts; | |
namespace ScriptCs.Exec | |
{ | |
public class PrintLinePreprocessor : DirectiveLineProcessor | |
{ | |
public PrintLinePreprocessor() | |
{ | |
Console.WriteLine("PrintLinePreprocessor created"); | |
} | |
protected override string DirectiveName | |
{ | |
get { return "print"; } | |
} | |
protected override bool ProcessLine(IFileParser parser, FileParserContext context, string line) | |
{ | |
var arg = GetDirectiveArgument(line); | |
Console.WriteLine(arg); | |
return true; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment