p-nand-q.com | home | computer | humor | business | pictures | about

humor

programming languages

GPLZ

gplz. [gplz dot space]

The syntax is the same as the syntax for .((o)), but the following tokens are mapped to spaces, newlines and tabs: 

> "\t\t \t \n"
+ "\t\t \t \n \t"
, "\t\t \t \n\n "
/ "\t\t \t \n \t \n\n"
< "\t\t \t "
- "\t\t \t\n \t\n\n\t "
( "\t\t \t \t"
= "\t\t \t \n "
) "\t\t \t \n "
* "\t\t \t \t\n"

Example

Hello, ". " World

"Hello World"

The following programm will print the first 20 fibonacci numbers

      

		  			 	f		  	x		 	                	 	 
 		  			 	i		 
 x		           
     	 	 

 		  	j		
 x		           
     	 	 

 		  	c		
 		  	x		
   	

	  x	 	       
     	 	       
     	 	       
     	 	 

 		  			 	f		  	1		 	           
     	 	       
     	 	 

 		  	WHILE		  	c		       20		 	           
     DO	 	  			  			 	                            		 	                            j		 	           
     	 	 

 		  	h		
 		  	j		      
 	i	 	       
     	 	       
     	 	 

 		  	j		
 i		           
     	 	 

 		  	i		
 h		           
     	 	 

 		  	c		      
 		 	 
 1		           
     		 	           

I cannot guarantee that your webbrowser will render this code correctly ;)