private void Parse(List <Expression> list) { list.Add(new EOSExpression()); var context = new SyntaxContext(this, list); ModuleParser.Parse(context, 0); list.RemoveAt(list.Count - 1); ast = list[0]; errorList = list.Where(t => !t.isModule).ToList(); vm.WriteLine("[source]"); vm.WriteLine(ast.ToString()); if (errorList.Count > 0) { vm.WriteLine(string.Empty); vm.WriteLine(errorList.Select(t => string.Format("[ERROR -->> {0}] {1}", t.GetDebugInfo(), t)).FormatListString("\n")); } }
public void Print(StackFrame stackFrame, LuaObject[] args) { vm.WriteLine(args.FormatListString()); }