scratch-ed / scratch-LN

https://scratch4d.github.io/scratch-LN/
Apache License 2.0
21 stars 9 forks source link

major grammar updates #92

Open pdawyndt opened 6 years ago

pdawyndt commented 6 years ago

Design principles

A new version of the Scratch-LN grammar should follow these design principles:

pdawyndt commented 6 years ago

Advantages

pdawyndt commented 6 years ago

Other ideas

pdawyndt commented 6 years ago

alternative indentation

block
| block
| block
block
block
| block
| block
block

alternative vertical stacking

--------------------
hat
---___--------------
connector
---___--------------
connector
---___--------------
connector
---___--------------
cap
--------------------

as a shorthand for

--------------------
hat
---___--------------
---___--------------
connector
---___--------------
---___--------------
connector
---___--------------
---___--------------
connector
---___--------------
---___--------------
cap
--------------------

this could also be used to represent C-blocks

|---___-----------------
| if <mouse down> then
| |---___---------------
| |---___---------------
| | move "10" steps 
| |---___---------------
| |---___---------------
| else
| |---___---------------
| |---___---------------
| | move "20" steps 
| |---___---------------
| |---___---------------
|---___-----------------