UnitedLexCorp / SimpleTalk

An implementation of HyperTalk in Ohm-js
Apache License 2.0
7 stars 1 forks source link

target bug #193

Closed dkrasner closed 3 years ago

dkrasner commented 3 years ago

Main Points

This PR fixes two target related bugs:

As an example, this earlier failing script will now work:

on click
    if the "target"
    then
        tell target to set "text-color" to "blue"
    else
        set "target" to first button
    end if
end click

I've added various tests.

I've also fixed up an annoying thing where the grammar would open up as many times as you got a grammar error (or more?!). Now it will only open if not already there.

Also i included a few fun examples in the this PR from earlier work.