Results 1 to 5 of 5
  1. #1
    jeremy6996's Avatar
    Join Date
    Jul 2006
    Gender
    male
    Posts
    154
    Reputation
    10
    Thanks
    7

    MPGH's C++ Section

    This is basically it:



     

    Also, I have finalized my grammar rules for pophicmorly, I am working on a compiler for et right now (/am using antlr to generate lexer\parser\tree-walker) There are some thing I changed in this code to simplify it (in the actual version, you never explicitly specify registers so the compiler can use more advanced reg-swapping methods)

    Code:
    #attribute[#arg_obstruct = none, #local_obstruct=none, #convention=default]
    void myFunction()
    {
    	#attribute(#cycles=1, #method=random)
    	#init()
    	{
    //YEAH I KNOW I CAN JUST EXTEND THE SCOPE, THIS IS TO DEMONSTRATE A FEATURE THOUGH.
    		#rnd = rand(20, 50);
    		#a()
    		{
    			#asm
    			{
    				sub esp, #rnd
    			}
    		}
    		
    		#b()
    		{
    			#asm
    			{
    				sub esp, #rnd
    				add esp, 13;
    			}
    		}
    	}
    
    	#()
    	{
    		#(#init::b)
    		{
    			sub esp, #init::b::code[1]::arg[1]
    		}
    
    		//Do some bs here
    
    		add esp, #init::code[0]::arg[1]
    	}
    }

  2. #2
    Paul's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Faggotistan
    Posts
    6,295
    Reputation
    473
    Thanks
    1,055
    Like the VB section
    

  3. #3
    bowlcut's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    ثلاثة أقدام إلى
    Posts
    6,255
    Reputation
    1644
    Thanks
    2,082
    My Mood
    Sleepy
    This pie chart is 100% accurate.

  4. #4

  5. #5

Similar Threads

  1. MPGH.NET GFX SECTION (VIDEO)(ADD)
    By ImNotStaff in forum General
    Replies: 10
    Last Post: 11-02-2009, 07:17 PM
  2. This damned section is killin mpgh
    By scimmyboy in forum Combat Arms Hacks & Cheats
    Replies: 36
    Last Post: 08-19-2008, 02:13 AM
  3. Should MPGH have a Public Warez Section?
    By icuigorz in forum General
    Replies: 10
    Last Post: 03-11-2008, 07:10 PM
  4. MPGH's WarRock Trading section down.
    By bambell2 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 11-08-2007, 09:18 PM