1
0

単体テストの追加

This commit is contained in:
otya128
2015-06-03 21:12:00 +09:00
parent bb9ae9abdc
commit 018d59ee7f
3 changed files with 33 additions and 5 deletions

View File

@@ -29,11 +29,17 @@ class BinaryOperator : Expression
Expression item1;
TokenType operator;
Expression item2;
this(Expression i1, TokenType o)
this(BinaryOperator bop)
{
this.type = NodeType.BinaryOperator;
this.item1 = bop.item1;
this.operator = bop.operator;
this.item2 = bop.item2;
}
this(Expression i1)
{
this.type = NodeType.BinaryOperator;
this.item1 = i1;
this.operator = o;
}
this(Expression i1, TokenType o, Expression i2)
{