PHP Online Logo Interpreter

No need to install any software... The Server will interpret the input and get a pretty image for you.

The source code has been published at www.phpclasses.org , GPL Licence, all rights reserved

Do you know LOGO? If You Don't, you can visit Wikipedia for a basic knowledge. Logo is fun, i remember when i was a kid, i was first taught the LOGO , i was so addicted to it ... Now, during X-mas 2006, i had the idea of programming a basic interpreter for LOGO and finally i made it.

This interpreter, however, is written in PHP. That means you don't have to download whatever software but just put the code and run it. The result is shown in the following image, which by the way, you can easily save as. Pretty Amazing, Huh? You can do it 2!


Image Output 640x480 (16 Colors) (Need 'IFRRAME')
If your javascript is disabled...
Logo Language Input
Instructions

  1. Case In-Sensitive. For Example, make "a 3 is equivant to MaKe "A 3
  2. Empty Spaces are used to separate the code. Write :X+:Y Rather than :X(SPACE)+(SPACE):Y
  3. V0.1 Supports ...
  4.     var $_keywords_args=array(
                 "FORWARD","FD",
                 "BACK","BK",
                 "RIGHT","RT",
                 "LEFT","LT",
                 "SETPC","SETPENCOLOR","SETPENCOLOUR",
                 "SETSCREENCOLOR","SETSC","SETSCREENCOLOUR",
                 "REPEAT",
                 "SETXY","SETPOS",
                 "SETX",
                 "SETY",
                 "TO",
                 "ARC",
                 "MAKE",
                 "LOCALMAKE",
                 "LOCAL",
                 "IF",
                 "SETFC","SETFLOODCOLOR","SETFLOODCOLOUR"
          );
          
          var $_keywords=array(
                "HT","HIDETURTLE",
                "ST","SHOWTURTLE",
                "PU","PENUP",
                "PD","PENDOWN",
                "CS","CLEANSCREEN",
                "HOME",
                "FENCE",
                "WINDOW",
                "WRAP",
                "FILL",
                "END",
                "STOP"
          );
    
        Constants
        
          "PI"
          "WIDTH"
          "HEIGHT"
          "MAXX"
          "MAXY"
          "MINX"
          "MINY"
          "ISTRUECOLOR"
        	("BLACK",0);
        	("BLUE",1);
        	("GREEN",2);
        	("CYAN",3);
        	("RED",4);
        	("MAGENTA",5);
        	("BROWN",6);
        	("LIGHTGRAY",7);
        	("DARKGRAY",8);
        	("LIGHTGREY",7);
        	("DARKGREY",8);    	
        	("LIGHTBLUE",9);
        	("LIGHTGREEN",10);
        	("LIGHTCYAN",11);
        	("LIGHTRED",12);
        	("LIGHTMAGENTA",13);
        	("YELLOW",14);
        	("WHITE",15);
        	
        	
        Global Variables
        
          "RANDOMNUMBER0_100"
        	"POSX"
        	"POSY"
        	"DEGREE"
          "SCREENCOLOUR"
          "FLOODCOLOUR"
          "PENCOLOUR"
          "SCREENCOLOR"
          "FLOODCOLOR"
          "PENCOLOR"  
        	
        


Comments (0)


Be the first one to comment this page !


  Google `Zhihua Lai`   Hosted On Fasthosts Locations of visitors to this page

Page Edited: April 03 2008 01:20:16