diff options
author | John Hodge (bugs) <tpg@mutabah.net> | 2014-12-07 09:46:00 +0800 |
---|---|---|
committer | John Hodge (bugs) <tpg@mutabah.net> | 2014-12-07 09:46:00 +0800 |
commit | c325b671c1a44c90c8ce570b901219bcc2ae0a38 (patch) | |
tree | 5dff25da15192ad0b0635fa96bab5f510df018c6 /ast/ast.cpp | |
parent | 1ac5429531c195755c7e1690912291e20e9a1717 (diff) | |
download | mrust-c325b671c1a44c90c8ce570b901219bcc2ae0a38.tar.gz |
Macro evaluation hacked in (... not quite in yet, but framework is there)
Macro definitions not implemented, evil hack to define try! is present
Diffstat (limited to 'ast/ast.cpp')
-rw-r--r-- | ast/ast.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ast/ast.cpp b/ast/ast.cpp index 1683bf91..a6eaa039 100644 --- a/ast/ast.cpp +++ b/ast/ast.cpp @@ -39,7 +39,7 @@ Pattern::Pattern(TagEnumVariant, Path path, ::std::vector<Pattern> sub_patterns) }
-Function::Function(::std::string name, TypeParams params, TypeRef ret_type, ::std::vector<StructItem> args, Expr code)
+Function::Function(::std::string name, TypeParams params, Class fcn_class, TypeRef ret_type, ::std::vector<StructItem> args, Expr code)
{
}
@@ -76,9 +76,15 @@ ExprNode::ExprNode() ExprNode::ExprNode(TagBlock, ::std::vector<ExprNode> nodes)
{
}
+ExprNode::ExprNode(TagLetBinding, Pattern pat, ExprNode value)
+{
+}
ExprNode::ExprNode(TagInteger, uint64_t value, enum eCoreType datatype)
{
}
+ExprNode::ExprNode(TagStructLiteral, Path path, ExprNode base_value, ::std::vector< ::std::pair< ::std::string,ExprNode> > values )
+{
+}
ExprNode::ExprNode(TagCallPath, Path path, ::std::vector<ExprNode> args)
{
}
|