15 |
#define LS_INSTR_SCRIPT_PARSER_COMMON_H |
#define LS_INSTR_SCRIPT_PARSER_COMMON_H |
16 |
|
|
17 |
#include "../common/global.h" |
#include "../common/global.h" |
18 |
|
#include <vector> |
19 |
|
|
20 |
namespace LinuxSampler { |
namespace LinuxSampler { |
21 |
|
|
89 |
public: |
public: |
90 |
virtual VMFunction* functionByName(const String& name) = 0; |
virtual VMFunction* functionByName(const String& name) = 0; |
91 |
}; |
}; |
|
|
|
|
class VMParserContext { |
|
|
public: |
|
|
virtual ~VMParserContext() {} |
|
|
}; |
|
92 |
|
|
93 |
class VMExecContext { |
class VMExecContext { |
94 |
public: |
public: |
132 |
return "invalid"; |
return "invalid"; |
133 |
} |
} |
134 |
|
|
135 |
|
class VMParserContext { |
136 |
|
public: |
137 |
|
virtual ~VMParserContext() {} |
138 |
|
virtual std::vector<ParserIssue> issues() const = 0; |
139 |
|
virtual std::vector<ParserIssue> errors() const = 0; |
140 |
|
virtual std::vector<ParserIssue> warnings() const = 0; |
141 |
|
virtual VMEventHandler* eventHandler(uint index) = 0; |
142 |
|
virtual VMEventHandler* eventHandlerByName(const String& name) = 0; |
143 |
|
}; |
144 |
|
|
145 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |
146 |
|
|
147 |
#endif // LS_INSTR_SCRIPT_PARSER_COMMON_H |
#endif // LS_INSTR_SCRIPT_PARSER_COMMON_H |