Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yemrekeskin/7189267 to your computer and use it in GitHub Desktop.
Save yemrekeskin/7189267 to your computer and use it in GitHub Desktop.
Implementation of the Interpreter design pattern in c# example of use
class Program
{
static void Main(string[] args)
{
string txt = "YUNUSEMREKESKIN";
Context context = new Context(txt);
HexParser parser = new HexParser(context);
parser.Parser();
Console.WriteLine("{0} = {1}", context.Value, context.DigitalValue);
Console.ReadLine();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment