Created
October 27, 2013 23:40
-
-
Save yemrekeskin/7189267 to your computer and use it in GitHub Desktop.
Implementation of the Interpreter design pattern in c#
example of use
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
| 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