Small Basic Language

7
For i = 1 to 7 EndFor variable Start Stop

Transcript of Small Basic Language

For i = 1 to 7!!!EndFor

variable

Start

Stop

If ( ) Then

Endif

something

If ( ) ThenElseIf ( ) ThenElseEndif

something

somethingelse

everything else

doStuff()

Sub doStuffEndSub

Call the Subroutine

Same Name

Define the Subroutine

Parentheses

No Pare

ntheses

Getters

Setters

GetPenColor()GetPenWidth()GetBackground()

SetPenColor(“yellow”)SetPenWidth(5)SetBackground(“black”)

View

Change

Zipcode = 90210variab

le value

‘the current zipcode is 90210

is

map[1] = “one”variab

le value

is

index

map[2] = “two”map[3] = “three”

i = 1map[1] = map[6-5] = map[i]