From d2fae3b040b20c91afff472de5154977677d06c3 Mon Sep 17 00:00:00 2001 From: "John Hodge (bugs)" Date: Sun, 23 Nov 2014 21:18:03 +0800 Subject: Lexer "complete", parsing up to structure definitions. --- ast/ast.cpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ast/ast.cpp (limited to 'ast/ast.cpp') 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 + +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) +{ + +} + +} -- cgit v1.2.3