Implements binding unary expressions

This commit is contained in:
2019-05-22 12:22:52 +02:00
parent 62e938e039
commit 2cdb9abdb6
5 changed files with 83 additions and 20 deletions

View File

@@ -3,18 +3,21 @@
#define PORYGONLANG_BINDER_HPP
#include "../Parser/ParsedStatements/ParsedStatement.hpp"
#include "BoundStatements/BoundStatement.hpp"
#include "../Script.hpp"
class Binder {
Script* ScriptData;
BoundStatement *BindStatement(ParsedStatement *statement);
BoundStatement *BindBlockStatement(ParsedStatement *statement);
BoundStatement *BindExpressionStatement(ParsedStatement *statement);
BoundExpression *BindExpression(ParsedExpression *expression);
BoundExpression *BindBinaryOperator(BinaryExpression *expression);
BoundExpression *BindUnaryOperator(UnaryExpression *expression);
public:
static BoundScriptStatement* Bind(ParsedScriptStatement* s);
static BoundScriptStatement* Bind(Script* script, ParsedScriptStatement* s);
};