Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Fletcher Cutting committed May 31, 2017
1 parent d3c75d5 commit 7be1b72
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/call.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import system

function Main()
{
call HelloWorld("Hello", " World")
ReadLine()
}

function HelloWorld(v1, v2)
{
PrintLine(v1 + v2)
}
7 changes: 7 additions & 0 deletions examples/hello world.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import system

function Main()
{
PrintLine("Hello World")
ReadLine()
}
22 changes: 22 additions & 0 deletions examples/if.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import system

function Main()
{
Print("input: ")
str = InputString()

if (str == "hello")
{
PrintLine("if statement")
}
elseif (str == "world")
{
PrintLine("elseif statement")
}
else
{
PrintLine("else statement")
}

ReadLine()
}
9 changes: 9 additions & 0 deletions examples/input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import system

function Main()
{
Print("What's your name: ")
name = InputString()
PrintLine("Welcome " + name)
ReadLine()
}
9 changes: 9 additions & 0 deletions examples/repeat.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import system

function Main()
{
repeat
{
PrintLine("hello world")
}
}
8 changes: 8 additions & 0 deletions examples/variable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import system

function Main()
{
str = "Hello World"
PrintLine(str)
ReadLine()
}

0 comments on commit 7be1b72

Please sign in to comment.