Last change
on this file since 14328 was
14328,
checked in by pkimmesw, 8 years ago
|
#2665 Set .NET version to 4.5, C# version to 5.0, Added expression templates and factory
|
File size:
1.1 KB
|
Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 | using System.Threading;
|
---|
3 | using System.Threading.Tasks;
|
---|
4 | using HeuristicLab.Algorithms.PushGP.Expressions;
|
---|
5 | using HeuristicLab.Algorithms.PushGP.Stack;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Algorithms.PushGP.Interpreter
|
---|
8 | {
|
---|
9 | public interface IInterpreter
|
---|
10 | {
|
---|
11 | IStack<Expression> CodeStack { get; }
|
---|
12 | IStack<Expression> ExecStack { get; }
|
---|
13 | IStack<string> NameStack { get; }
|
---|
14 | IStack<bool> BooleanStack { get; }
|
---|
15 | IStack<long> IntegerStack { get; }
|
---|
16 | IStack<double> FloatStack { get; }
|
---|
17 |
|
---|
18 | IDictionary<string, Expression> CustomExpressions { get; }
|
---|
19 |
|
---|
20 | void Interpret(string code);
|
---|
21 | Task InterpretAsync(string code, bool paused = false, CancellationToken token = default(CancellationToken));
|
---|
22 | void Interpret(Expression program);
|
---|
23 | Task InterpretAsync(Expression program, bool paused = false, CancellationToken token = default(CancellationToken));
|
---|
24 | Task AbortAndReset();
|
---|
25 | Task AbortAsync();
|
---|
26 | Task PauseAsync();
|
---|
27 | Task ResumeAsync();
|
---|
28 | void Step();
|
---|
29 | void PrintStacks();
|
---|
30 | }
|
---|
31 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.