blob: 63169b616af3a7030af1cdba91614f4b1348dce1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
*/
#ifndef _MAIN_BINDINGS_HPP_
#define _MAIN_BINDINGS_HPP_
#include <string>
#include <memory>
#include <hir/crate_ptr.hpp>
namespace AST {
class Crate;
class Flat;
}
/// Parse a crate from the given file
extern AST::Crate Parse_Crate(::std::string mainfile);
extern void Expand(::AST::Crate& crate);
/// Process #[] decorators
extern void Process_Decorators(AST::Crate& crate);
extern ::HIR::CratePtr LowerHIR_FromAST(::AST::Crate crate);
/// Convert the AST to a flat tree
extern AST::Flat Convert_Flatten(const AST::Crate& crate);
/// Dump the crate as annotated rust
extern void Dump_Rust(const char *Filename, const AST::Crate& crate);
#endif
|