MR LOGO Proramming Environment

A place for you to show off what you have made with LiveCode

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Hutchboy
Posts: 112
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

MR LOGO Proramming Environment

Post by Hutchboy » Thu Aug 07, 2025 1:51 am

Hi,

I am working on a LOGO programming environment as a fun project and to try my hand at more complex stacks. The attached files include a partially working LOGO programming environment stack and an HTML Developer Tutorial. Almost all of the code is in the stack script.

In the Direct Command input field you can type LOGO commands directly and then press the Execute button. This works fairly well. Here you can type commands like FORWARD 100 and see the turtle move and draw a line.

Currently I am debugging how the program handles user defined procedures. Toward the end of the stack script are a number of test and debug functions that can be called from the message box should you want to explore.

The test LOGO program I have listed in the Program Editor is fairly tough and currently chokes. When you run it you can watch the progress in the lower right debug output field. I've made no effort yet to optimize for speed, although that is next after everything else is working. Here is a smaller LOGO program that you can run from the Program Editor and see the turtle move and line drawn:

TO TEST
FORWARD 50
END
TEST

This project is open source (MIT license) and I welcome suggestions.

-Mike

P.S. The MR in the name are my first and last initials ("Mister LOGO" also works)
Attachments
MR LOGO Programming Environment.livecode.zip
(41.87 KiB) Downloaded 30 times
MR LOGO Introduction.html.zip
(6.63 KiB) Downloaded 27 times

bobcole
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 162
Joined: Tue Feb 23, 2010 10:53 pm

Re: MR LOGO Proramming Environment

Post by bobcole » Tue Aug 12, 2025 8:09 pm

I commend you for such a large effort. It looks great.
I began playing with it a little and some things did not seen right.

For example, I tried to execute the RIGHT 90 command. The first time it worked.
The second time the turtle ended up pointing the wrong way.

This may be a symptom of other errors in the logic of the program that affect the difficulty you see.
Bob

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10321
Joined: Wed May 06, 2009 2:28 pm

Re: MR LOGO Proramming Environment

Post by dunbarx » Tue Aug 12, 2025 9:11 pm

Hi.

I started with HC in 1987. I knew about SuperCard. I am intrigued now by the broad differences that must exist between LC and other current RAD programs, such as XOJO.

To me, LC, ahem, seems perfect. But can you say, briefly, what you like most about LOGO?

Craig

Hutchboy
Posts: 112
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Re: MR LOGO Proramming Environment

Post by Hutchboy » Wed Aug 13, 2025 4:18 am

Hi,

The only time I actually used LOGO was when it was included as a scripting language in an early version of HyperStudio and it intrigued me. LOGO was designed for education and there are numerous examples on the web of its history and current offerings.

My interest for this project was just to tackle something fairly complex in LiveCode for fun and to see how far I can take it. Also, there are many LOGO programs that illustrate what can be done in LOGO and easily accessible for testing in the stack I am developing.

- Mike

BTW, I started with HyperCard GS on the Apple IIGS. When Macs became a little more capable I started using HyperCard in earnest and eventually picked up SuperCard as well. I was eventually frustrated by Apple's handling of HyperCard and that they didn't make a natively colored version (discounting the AddColor hack). LiveCode is what I had imagined an evolved HyperCard would be.

Post Reply