diff options
author | John Hodge (bugs) <tpg@mutabah.net> | 2014-11-23 21:18:03 +0800 |
---|---|---|
committer | John Hodge (bugs) <tpg@mutabah.net> | 2014-11-23 21:18:03 +0800 |
commit | d2fae3b040b20c91afff472de5154977677d06c3 (patch) | |
tree | f601d728a11f36b1a06ad6dd264210846c0a6702 /ast/ast.cpp | |
parent | 7ad1a8b4b40784e0a10bd453c75dd0dcf123d5f1 (diff) | |
download | mrust-d2fae3b040b20c91afff472de5154977677d06c3.tar.gz |
Lexer "complete", parsing up to structure definitions.
Diffstat (limited to 'ast/ast.cpp')
-rw-r--r-- | ast/ast.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ast/ast.cpp b/ast/ast.cpp new file mode 100644 index 00000000..5c9c566e --- /dev/null +++ b/ast/ast.cpp @@ -0,0 +1,37 @@ +/*
+ */
+#include "ast.hpp"
+#include "../types.hpp"
+#include <iostream>
+
+namespace AST {
+
+void Module::add_constant(bool is_public, ::std::string name, TypeRef type, Expr val)
+{
+ ::std::cout << "add_constant()" << ::std::endl;
+}
+
+void Module::add_global(bool is_public, bool is_mut, ::std::string name, TypeRef type, Expr val)
+{
+ ::std::cout << "add_global()" << ::std::endl;
+}
+
+ExprNode::ExprNode(TagInteger, uint64_t value, enum eCoreType datatype)
+{
+
+}
+
+TypeParam::TypeParam(bool is_lifetime, ::std::string name)
+{
+
+}
+void TypeParam::addLifetimeBound(::std::string name)
+{
+
+}
+void TypeParam::addTypeBound(TypeRef type)
+{
+
+}
+
+}
|