aboutsummaryrefslogtreecommitdiffstats
path: root/runnerline.h
blob: b738f58366d5444ff69faab94a085a9ed84dbc8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef INCLUDE_BLASSIC_RUNNERLINE_H
#define INCLUDE_BLASSIC_RUNNERLINE_H

// runnerline.h
// Revision 18-jul-2004

#include "codeline.h"
#include "function.h"
#include "result.h"

class Runner;
class LocalLevel;

class RunnerLine {
public:
	RunnerLine (Runner & runner);
	RunnerLine (Runner & runner, const CodeLine & newcodeline);
	virtual ~RunnerLine ();

	CodeLine & getcodeline () { return codeline; }
	virtual void execute ()= 0;
	virtual ProgramPos getposactual () const= 0;
	virtual void callfn (Function & f, const std::string & fname,
		LocalLevel & ll, blassic::result::BlResult & result)= 0;
protected:
	Runner & runner;
	CodeLine codeline;
};

RunnerLine * newRunnerLine (Runner & runner, const CodeLine & newcodeline);

#endif

// End of runnerline.h
Un proyecto texto-plano.xyz