public ExecutionDebugInfo(DaisyAst ast, DaisyMode mode) { _mode = mode; Ast = ast; _performanceCounter = mode == DaisyMode.Debug ? new PerformanceCounter() : NoopPerformanceCounter.Instance; measurements = new Lazy<PerformanceMeasurments>(() => PerformanceCounter.Measurments); }
public ExecutionDebugInfo(DaisyAst ast, DaisyMode mode) { _mode = mode; Ast = ast; _performanceCounter = mode == DaisyMode.Debug ? new PerformanceCounter() : NoopPerformanceCounter.Instance; measurements = new Lazy <PerformanceMeasurments>(() => PerformanceCounter.Measurments); }
public DaisyProgram(DaisyAst ast, DaisyMode mode) { Mode = mode; this.ast = ast; }
internal DaisyExecution(DaisyAst ast, DaisyMode mode) { Attachments = new ContextBundle(); DebugInfo = new ExecutionDebugInfo(ast, mode); }
public DaisyExecution(DaisyAst ast, DaisyMode mode) { Attachments = new ContextBundle(); DebugInfo = new ExecutionDebugInfo(ast,mode); }
public static DaisyProgram <T> Compile <T>(string code, StatementSet statements, DaisyMode mode = DaisyMode.Debug) { var ast = DaisyParser.Parse(code); var linker = new DaisyLinker(ast, statements, typeof(T)); linker.Link(); return(new DaisyProgram <T>(ast, mode)); }