mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-08 07:28:22 -10:00
This also includes the necessary setup work for using "position" and "direction" in action expressions.
28 lines
501 B
C++
28 lines
501 B
C++
#pragma once
|
|
|
|
#include "globalincs/pstypes.h"
|
|
|
|
#include "ParseContext.h"
|
|
|
|
#include "actions/expression/nodes/AbstractExpression.h"
|
|
|
|
namespace actions {
|
|
namespace expression {
|
|
|
|
class ExpressionParser {
|
|
public:
|
|
ExpressionParser(SCP_string expressionText);
|
|
|
|
std::shared_ptr<nodes::AbstractExpression> parse(const ParseContext& context);
|
|
|
|
const SCP_string& getErrorText() const;
|
|
|
|
private:
|
|
SCP_string m_expressionText;
|
|
|
|
SCP_string m_errorText;
|
|
};
|
|
|
|
} // namespace expression
|
|
} // namespace actions
|