29 lines
398 B
C++
29 lines
398 B
C++
#ifndef STATEMENT_H
|
|
#define STATEMENT_H
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
enum class StatementKind {
|
|
EXPRESSION,
|
|
BLOCK,
|
|
RETURN,
|
|
FUNCTION,
|
|
VARIABLE,
|
|
ASSIGNMENT,
|
|
REPEAT,
|
|
META_EXTERN_FUNCTION
|
|
};
|
|
|
|
class Statement {
|
|
private:
|
|
StatementKind kind;
|
|
|
|
public:
|
|
Statement(StatementKind kind);
|
|
virtual ~Statement() { }
|
|
StatementKind getKind();
|
|
};
|
|
|
|
#endif |