PHP Classes

Logo class: Logo interpreter

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 2,360 All time: 1,655 This week: 560Up
Version License PHP version Categories
logoclass 1.0.0GNU Lesser Genera...4.0Emulators, Games, Flash, Parsers


This class implements a full-featured interpreter of the Logo programming language.

It generates graphical output in the form of a Shockwave Flash movie.

See this page for a demonstration:

It will be cool if people post Logo programs in the support/discussion forum of this class.

Picture of Rene Kluwen
Name: Rene Kluwen <contact>
Classes: 6 packages by
Country: The Netherlands The Netherlands
Age: 54
All time rank: 742 in The Netherlands The Netherlands
Week rank: 351 Down7 in The Netherlands The Netherlands Down


This is the readme that goes with the logo class from Rene Kluwen <>. This class is an implementation of a Logo interpreter (parser and graphical output). The whole thing consists of one single PHP class. License: LGPL. See: Parsing is mostly done using regular expressions. Arithmetic functionality is 'borrowed' from PHP, using the eval() function. Output needs SWF support in your PHP version. Logo resume: ** ** The basic Logo commands: ** ** FD 100 Move the turtle forward 100 steps. ** RT 90 Turn the turtle to the right 90. ** LT 90 Turn the turtle to the left 90. ** BK 100 Move the turtle backwards 100 steps. ** PU Pick the turtle's pen up off the paper. ** PD Put the turtles pen back down on the paper. ** CS Clear the screen and start over. ** HT Hide the turtle (triangle). ** ST Show the turtle (triangle). ** REPEAT 3 [...] Repeat the commands 3 times. ** MAKE "var value Set variabele var to value ** TO wordname :par1 :par2 ... Wordname is a new word with par1, par2... as parameters ** Todo: implement some music commands. Todo: Conditional execution (IF), Local variables, more commands (such as POLY, SETXY, etc.).

  Files folder image Files  
File Role Description
Plain text file logo.php Class The class file
Accessible without login HTML file logo.tem.html Data Template file, used by example
Accessible without login Plain text file logo_example.php Example How to use the logo class
Accessible without login Plain text file readme.txt Data Readme / License

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,655
This week:560Up
 User Ratings  
 All time