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
    Posts
    6,296
    Reputation
    473
    Thanks
    1,061
    My Mood
    Sleepy
    Like the VB section


  3. #3
    bowlcut's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    ثلاثة أقدام إلى
    Posts
    6,348
    Reputation
    1805
    Thanks
    2,201
    My Mood
    Sleepy
    This pie chart is 100% accurate.
    Quote Originally Posted by Dave84311 View Post
    I hate you colin. I really hate you.

  4. #4

  5. #5
    vipk-2's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Egypt
    Posts
    910
    Reputation
    35
    Thanks
    46
    Great and real

Similar Threads

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