Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public SyntaxItem GetHighest()
 {
     if (parent == null)
     {
         return(this);
     }
     else
     {
         return(parent.GetHighest());
     }
 }