19 lines
379 B
C++
19 lines
379 B
C++
#ifndef PARSING_H
|
|
#define PARSING_H
|
|
|
|
#include <map>
|
|
|
|
#include "ast.h"
|
|
#include "result.h"
|
|
#include "tokens.h"
|
|
|
|
namespace parsing {
|
|
struct Scope {
|
|
std::map<std::string, std::shared_ptr<types::Type>> structs;
|
|
};
|
|
|
|
Result<std::unique_ptr<AST::TopLevelStatement>, std::string> parse_top_level_statement(
|
|
token::TokenStream& stream, Scope& scope);
|
|
}
|
|
|
|
#endif |