LOGO-py
A simple pygame implementation of the LOGO programming language.
Latest Version Notes
- Fixed a bug where penup/pendown would not work properly.
- Added functionality for
setpensize
andsetpencolor
. - Added functionality for
setx
,sety
, andsetxy
.
Still Broken
- For some reason, commands are only valid when they are padded with spaces.
- i.e.
repeat 2 [fd 10 ]
is valid butrepeat 2 [fd 10]
is not. - probably a noob regex mistake.
- i.e.
- Nested
repeat
commands are not supported due to regex limitations. forever
loops lock everything up because it currently tries to finish drawing everything before showing it on-screen.
Usage
$ python3 src/logo/logo.py <filepath>
For example, passing demo.logo
will open a pygame window and draw a house:
$ python3 src/logo/logo.py demo.logo