A simple scripting language in C++
Szontágh Ferenc
2025-04-19 571a9a1bafe0d8adddf3141f82213a47e4568baa
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
#ifndef STATEMENT_NODE_HPP
#define STATEMENT_NODE_HPP
 
#include <string>
 
namespace Interpreter {
 
class StatementNode {
  public:
    std::string filename_;
    int         line_;
    size_t      column_;
 
    StatementNode(const std::string & file_name, int file_line, size_t line_column) :
        filename_(file_name),
        line_(file_line),
        column_(line_column) {}
 
    virtual ~StatementNode()                                      = default;
    virtual void interpret(class Interpreter & interpreter) const = 0;
    virtual std::string toString() const = 0;
};
 
};  // namespace Interpreter
 
#endif  // STATEMENT_NODE_HPP