Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xinghen91/Logo-Programming-Language-
1st year project, created a small interpreter in c. see assignment 02 outline.
https://github.com/xinghen91/Logo-Programming-Language-
Last synced: 2 months ago
JSON representation
1st year project, created a small interpreter in c. see assignment 02 outline.
- Host: GitHub
- URL: https://github.com/xinghen91/Logo-Programming-Language-
- Owner: xinghen91
- Created: 2016-12-13T23:53:23.000Z (about 8 years ago)
- Default Branch: A2
- Last Pushed: 2016-01-08T04:22:33.000Z (about 9 years ago)
- Last Synced: 2024-04-24T16:41:22.100Z (9 months ago)
- Language: C
- Size: 69.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
- AwesomeInterpreter - Logo-Programming-Language-
README
****************************************************
Nick Major 0879292
CIS2500 Assignment 2 / Logo
02/13/15
****************************************************
This is an interpreter for a small subset of the Logo Programming Language. The interpreter takes user input one line at a time and produces correct output. This program provides logo-style error messages if the user provides incorrect input.
************
Compilation
************
make (this makes the Makefile)***********************
Running the program(s)
***********************
- cd Directory bin/
- ./runMe*****************
Known Limitations
*****************
- negative moves
- user input length
- only 50 commands per use
- saving*****************
Commands
*****************
Command number description
fd move - moves in the positive x or y direction depending on the angle
bk move - moves in the negative x or y direction depending on the angle
rt angle - rotates current angle clockwise around the unit circle
lt angle - moves current angle counter-clockwise around the unit circle
pu (n/a) - turtle doesn’t draw behind it
pd (n/a) - turtle draws behind it
ht (n/a) - the turtle is no longer drawn
st (n/a) - the turtle is drawn
home (n/a) - resets the turtles position to the starting position
setpencolor color - pen can change to blue, red, green, or yellow
clean (n/a) - erases all of the pen lines
print ____ - prints whatever is in the blank space less than 15 characters
new (n/a) - resets the program