summaryrefslogtreecommitdiff
path: root/ast/ast.cpp
blob: bf86649bd44edf6cce882b4a7bc0094ef590f84a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
 */
#include "ast.hpp"
#include "../types.hpp"
#include <iostream>

namespace AST {

Path::Path()
{
}
Path::Path(Path::TagAbsolute)
{
}

const ::std::string& PathNode::name() const
{
    return m_name;
}
const TypeParams& PathNode::args() const
{
    return m_params;
}

Pattern::Pattern(TagMaybeBind, ::std::string name)
{
}
Pattern::Pattern(TagValue, ExprNode node)
{
}

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;
}
void Module::add_struct(bool is_public, ::std::string name, TypeParams params, ::std::vector<StructItem> items)
{
}
void Module::add_function(bool is_public, ::std::string name, TypeParams params, TypeRef ret_type, ::std::vector<StructItem> args, Expr code)
{
}

ExprNode::ExprNode()
{

}
ExprNode::ExprNode(TagBlock, ::std::vector<ExprNode> nodes)
{
}
ExprNode::ExprNode(TagInteger, uint64_t value, enum eCoreType datatype)
{
}
ExprNode::ExprNode(TagCallPath, Path path, ::std::vector<ExprNode> args)
{
}
ExprNode::ExprNode(TagMatch, ExprNode val, ::std::vector< ::std::pair<Pattern,ExprNode> > arms)
{
}
ExprNode::ExprNode(TagNamedValue, Path path)
{
}

TypeParam::TypeParam(bool is_lifetime, ::std::string name)
{

}
void TypeParam::addLifetimeBound(::std::string name)
{

}
void TypeParam::addTypeBound(TypeRef type)
{

}

}