diff options
| author | John Hodge <tpg@mutabah.net> | 2016-03-06 17:41:46 +0800 |
|---|---|---|
| committer | John Hodge <tpg@mutabah.net> | 2016-03-06 17:41:46 +0800 |
| commit | 859d43ae7012da10a58de5926d096dc817596fce (patch) | |
| tree | 66a0dc09e8be4e5c7763bfc4af0cfae488c2c595 /src/include/main_bindings.hpp | |
| parent | f430222343e18fec9f97c9b9fdfdc17667b94505 (diff) | |
| download | mrust-859d43ae7012da10a58de5926d096dc817596fce.tar.gz | |
HUGE REFACTOR - Move named module items into a tagged union
- Item attributes now "owned" by the parent
Diffstat (limited to 'src/include/main_bindings.hpp')
| -rw-r--r-- | src/include/main_bindings.hpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/include/main_bindings.hpp b/src/include/main_bindings.hpp index 91bac742..dc9ef9eb 100644 --- a/src/include/main_bindings.hpp +++ b/src/include/main_bindings.hpp @@ -3,12 +3,26 @@ #ifndef _MAIN_BINDINGS_HPP_ #define _MAIN_BINDINGS_HPP_ -#include "../ast/ast.hpp" +#include <string> + +namespace AST { + class Crate; + class Flat; +} /// Parse a crate from the given file extern AST::Crate Parse_Crate(::std::string mainfile); + + +extern void Expand_Decorators_Pre(::AST::Crate& crate); +extern void Expand_Macros(::AST::Crate& crate); +extern void Expand_Decorators_Post(::AST::Crate& crate); +extern void Expand_Sugar(::AST::Crate& crate); + /// Process #[] decorators extern void Process_Decorators(AST::Crate& crate); + + /// Resolve all in-text paths to absolute variants extern void ResolvePaths(AST::Crate& crate); /// Check that generic bounds are valid |
