summaryrefslogtreecommitdiff
path: root/src/hir/from_ast_expr.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-15 16:41:14 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-15 16:41:14 +0800
commit4160198a0a1159319a4e523e364ba57e4702295c (patch)
treebfd733d9af56f789518400fff77df6f8a3f857cb /src/hir/from_ast_expr.cpp
parent0bc8acddc94730dcb1f9bd3b2c981b119fe57f6f (diff)
downloadmrust-4160198a0a1159319a4e523e364ba57e4702295c.tar.gz
HIR - Start on expression conversion
Diffstat (limited to 'src/hir/from_ast_expr.cpp')
-rw-r--r--src/hir/from_ast_expr.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/hir/from_ast_expr.cpp b/src/hir/from_ast_expr.cpp
index e69de29b..a5f29ce8 100644
--- a/src/hir/from_ast_expr.cpp
+++ b/src/hir/from_ast_expr.cpp
@@ -0,0 +1,19 @@
+/*
+ */
+#include <hir/expr_ptr.hpp>
+#include <hir/expr.hpp>
+#include <ast/expr.hpp>
+#include <ast/ast.hpp>
+
+
+struct Visitor:
+ public ::AST::NodeVisitor
+{
+};
+
+::HIR::ExprPtr LowerHIR_ExprNode(const ::AST::ExprNode& e)
+{
+ //Visitor v;
+ //const_cast<::AST::ExprNode*>(&e)->visit( v );
+ throw ::std::runtime_error("TODO: LowerHIR_ExprNode");
+}