Skip to content

Instantly share code, notes, and snippets.

@gaufung
Created September 13, 2020 08:34
Show Gist options
  • Save gaufung/27c273e69e0c8084a95088ecd5395db9 to your computer and use it in GitHub Desktop.
Save gaufung/27c273e69e0c8084a95088ecd5395db9 to your computer and use it in GitHub Desktop.
Calculator CLI Main
static void Main(string[] args)
{
var lexer = new Lexer.Lexer(input);
var parser = new Parser.Parser(lexer);
var expression = parser.Parse();
var result = Evaluate.Evaluator.Eval(expression);
Console.Out.Write(result.Inspect());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment