Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2003-09-10 (13 years ago) | 54% | Total: 2,332 | All time: 1,608 This week: 1,109 |
Version | License | PHP version | Categories | |||
logoclass 1.0 | GNU Lesser Genera... | 4.0 | Emulators, Games, Flash, Parsers |
Description | Author | |||||||||||||
This class implements a full-featured interpreter of the Logo programming language. |
|
This is the readme that goes with the logo class from Rene Kluwen <rene.kluwen@chimit.nl>. 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: http://www.gnu.org/copyleft/lesser.html. 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 |
File | Role | Description |
---|---|---|
logo.php | Class | The class file |
logo.tem.html | Data | Template file, used by example |
logo_example.php | Example | How to use the logo class |
readme.txt | Data | Readme / License |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
Example See this script in action |
If you know an application of this package, send a message to the author to add a link here.
Pages that reference this package |
Image_Turtle Image_Turtle is a image drawing system work with Lindenmayer system... |