public string Emit() { foreach (Instruction i in mInstructions) { mCode.AppendLine(i.ToASM()); } foreach (Declaration d in mDeclarations) { mData.AppendLine(d.Name + ": " + TypeEnvironment.SizeOfType(d.Type)); } string stack = mStack.ToString(); string data = mData.ToString(); string code = mCode.ToString(); return(stack + data + code); }
public int GetSize() { return(TypeEnvironment.SizeOfType(mType)); }