summaryrefslogtreecommitdiff
path: root/src/expand/asm.cpp
blob: 3ca7bb72c86760dce6f1619eafb2992fc9a70f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * MRustC - Rust Compiler
 * - By John Hodge (Mutabah/thePowersGang)
 *
 * expand/asm.cpp
 * - asm! macro
 */
#include <common.hpp>
#include <synext_macro.hpp>
#include <parse/tokentree.hpp>
#include <parse/ttstream.hpp>

class CAsmExpander:
    public ExpandProcMacro
{
    ::std::unique_ptr<TokenStream> expand(const Span& sp, const ::AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override
    {
        // TODO: Convert this into an AST node
        return box$( TTStreamO(TokenTree()) );
    }
};

STATIC_MACRO("asm", CAsmExpander);