PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2003-09-10 (13 years ago) RSS 2.0 feedStarStarStar 54%Total: 2,332 All time: 1,608 This week: 1,109Up
Version License PHP version Categories
logoclass 1.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

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,332
This week:0
All time:1,608
This week:1,109Up
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:63%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:1714