blob: c01ff86d9b8217ab33dbf538742f67151a926de7 (
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
|
/*
*/
#ifndef _MAIN_BINDINGS_HPP_
#define _MAIN_BINDINGS_HPP_
#include <string>
#include <memory>
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);
/// 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
|