lily/src/parser.hpp

22 lines
401 B
C++
Raw Normal View History

2019-06-04 20:45:06 -07:00
#pragma once
#include <string>
#include <map>
#include "error.hpp"
#include "ast.hpp"
#include "function.hpp"
2019-06-05 21:16:40 -07:00
#include "type.hpp"
#include "type_manager.hpp"
2019-06-04 20:45:06 -07:00
namespace lily {
struct program {
type_manager type_mgr;
2019-06-04 20:45:06 -07:00
std::map<std::string, function> functions;
void check();
2019-06-04 20:45:06 -07:00
};
typedef std::unique_ptr<program> program_ptr;
program_ptr parse(std::string s);
}