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
Description 

Author

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:
http://www.chimit.nl/logo/logo_example.php

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: 53
All time rank: 742 in The Netherlands The Netherlands
Week rank: 416 Down9 in The Netherlands The Netherlands Down

Details

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 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  
 0%
Total:2,360
This week:0
All time:1,655
This week:560Up
 User Ratings  
 
 All time
Utility:77%StarStarStarStar
Consistency:72%StarStarStarStar
Documentation:-
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2399