1
0

Value => TokenValue

This commit is contained in:
otya128
2016-12-17 11:55:07 +09:00
parent 84a82d1336
commit f54b00549e
4 changed files with 164 additions and 28 deletions

View File

@@ -60,8 +60,8 @@ abstract class Expression : Node
}
class Constant : Expression
{
Value value;
this(Value v, SourceLocation loc)
TokenValue value;
this(TokenValue v, SourceLocation loc)
{
super.location = loc;
this.type = NodeType.Constant;
@@ -515,14 +515,14 @@ class Inc : Statement
}
class Data : Statement
{
Value[] data;
TokenValue[] data;
this(SourceLocation loc)
{
super.location = loc;
this.type = NodeType.Data;
this.data = new Value[0];
this.data = new TokenValue[0];
}
void addData(Value v)
void addData(TokenValue v)
{
data ~= v;
}