More work on binder, implements basic literal expressions

This commit is contained in:
2019-05-21 20:59:26 +02:00
parent 2fe6f570ec
commit 80998eab14
7 changed files with 251 additions and 3 deletions

View File

@@ -1,13 +1,19 @@
#ifndef PORYGONLANG_BINDER_HPP
#define PORYGONLANG_BINDER_HPP
#include "../Parser/ParsedStatements/ParsedScriptStatement.hpp"
#include "../Parser/ParsedStatements/ParsedStatement.hpp"
#include "BoundStatements/BoundStatement.hpp"
class Binder {
BoundStatement *BindStatement(ParsedStatement *statement);
BoundStatement *BindBlockStatement(ParsedStatement *statement);
public:
static BoundScriptStatement* Bind(ParsedScriptStatement* s);
BoundExpression *BindExpression(ParsedExpression *expression);
BoundStatement *BindExpressionStatement(ParsedStatement *statement);
};