Jump to content

Activities/Turtle Art/Tutorials/Stack Programming: Difference between revisions

From Sugar Labs
Tonyforster (talk | contribs)
No edit summary
Rdrsadhu (talk | contribs)
Migrate to GitHub
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The Forth programming language uses a stack for computations.
== Turtle Art/Tutorials/Stack Programming ==


On the right of the screen, the Forth words + - x / DUP and SWAP are implemented with blocks.
Read at https://help.sugarlabs.org/turtleart_tutorials/stack_programming.html


On the left, a Forth like program to compute 3^2 +4^2 = 25
The source file has been moved to [https://github.com/godiard/help-activity/blob/master/source/turtleart_tutorials/stack_programming.rst GitHub]
 
 
[[File:Screenshot of Turtle Art Activity forth.png|600px]]
 
[[File:Turtle Art Activity forth.ta]]
 
What computations can you make with this set of words?
 
Make additional words with Turtle blocks

Latest revision as of 06:57, 30 July 2018

Turtle Art/Tutorials/Stack Programming

Read at https://help.sugarlabs.org/turtleart_tutorials/stack_programming.html

The source file has been moved to GitHub