1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00
codon/compiler/parser/parser.h
2021-09-27 14:02:44 -04:00

29 lines
784 B
C++

/*
* parser.h --- Seq AST parser.
*
* (c) Seq project. All rights reserved.
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*/
#pragma once
#include <string>
#include <unordered_map>
#include <vector>
#include "sir/sir.h"
#include "util/common.h"
namespace seq {
seq::ir::Module *parse(const std::string &argv0, const std::string &file,
const std::string &code = "", bool isCode = false,
int isTest = 0, int startLine = 0,
const std::unordered_map<std::string, std::string> &defines =
std::unordered_map<std::string, std::string>{});
void generateDocstr(const std::string &argv0);
} // namespace seq