internal void GenerateByteCode() { this.currentItem = currentItem.GetHighest(); this.currentItem.Cleanup(); Context context = new Context(); this.commands = GetCommands(context, currentItem.subItems, 0); this.StackSize = context.nextAddress; commands.Insert(0, new Command(ECommand.STACKALLOC, StackSize)); }
public SyntaxItem GetHighest() { if (parent == null) { return(this); } else { return(parent.GetHighest()); } }