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

@@ -256,6 +256,10 @@ class Compiler
{
code ~= new Push(value);
}
void genCodeImm(TokenValue value)
{
code ~= new Push(value.toSBImm);
}
void genCodePushGlobal(int ind)
{
code ~= new PushG(ind);
@@ -1132,7 +1136,7 @@ class Compiler
{
auto data = cast(Data)i;
foreach(j; data.data)
s.data.addData(j);
s.data.addData(j.toSBImm);
}
break;
case NodeType.Read: