public void ExpressionParserKernelConstructorTest() { CompilerKernel kernel = null; // TODO: Initialize to an appropriate value string expr = string.Empty; // TODO: Initialize to an appropriate value Location loc = null; // TODO: Initialize to an appropriate value ExpressionParserKernel target = new ExpressionParserKernel(kernel, expr, loc); Assert.Inconclusive("TODO: Implement code to verify target"); }
static void Main(string[] args) { string exprStr; exprStr = Console.ReadLine(); CompilerKernel kernel = new CompilerKernel(new string[]{}, new string[]{}, null); ExpressionParserKernel parser = new ExpressionParserKernel(kernel, exprStr, new FireEngine.FireML.Library.Location("", 0, 0)); Expression expr = parser.Parse(); Error[] errors = kernel.CheckPoint(); foreach (Error e in errors) { Console.WriteLine("{0}\n{1},{2}\n{3}", e.Location.FileName, e.Location.Line, e.Location.Column, e.Message); Console.WriteLine(); } }
static void Main(string[] args) { string exprStr; exprStr = Console.ReadLine(); CompilerKernel kernel = new CompilerKernel(new string[] {}, new string[] {}, null); ExpressionParserKernel parser = new ExpressionParserKernel(kernel, exprStr, new FireEngine.FireML.Library.Location("", 0, 0)); Expression expr = parser.Parse(); Error[] errors = kernel.CheckPoint(); foreach (Error e in errors) { Console.WriteLine("{0}\n{1},{2}\n{3}", e.Location.FileName, e.Location.Line, e.Location.Column, e.Message); Console.WriteLine(); } }