Time for an 2014 update…

This commit is contained in:
Ingy döt Net 2014-01-17 05:32:22 +00:00
parent 372c577f83
commit 09687c4926
2520 changed files with 34227 additions and 7318 deletions

View file

@ -1,4 +1,4 @@
stringvar1$ = "Hello,"
stringvar2$ = stringvar1$ + " world!"
PRINT "Variable 1 is """ stringvar1$ """"
PRINT "Variable 2 is """ stringvar2$ """"
S$ = "HELLO"
PRINT S$;" LITERAL" :REM OR S$ + " LITERAL"
S2$ = S$ + " LITERAL"
PRINT S2$

View file

@ -1,3 +1,4 @@
10 LET s$="Hello"
20 LET s$=s$+" World!"
30 PRINT s$
stringvar1$ = "Hello,"
stringvar2$ = stringvar1$ + " world!"
PRINT "Variable 1 is """ stringvar1$ """"
PRINT "Variable 2 is """ stringvar2$ """"

View file

@ -0,0 +1,3 @@
10 LET s$="Hello"
20 LET s$=s$+" World!"
30 PRINT s$

View file

@ -0,0 +1,3 @@
local :s1 "hello"
local :s2 concat( s1 ", world" )
!print s2

View file

@ -0,0 +1,2 @@
s = "hello"
println(s + " there!")

View file

@ -1,5 +1,10 @@
s = "hello"
puts s + " literal"
p s + " literal" #=> "hello literal"
s1 = s + " literal"
puts s1
p s1 #=> "hello literal"
s1 << " another" # append to s1
p s1 #=> "hello literal another"
s = "hello"
p s.concat(" literal") #=> "hello literal"
p s #=> "hello literal"

View file

@ -1,3 +1,5 @@
val s = "hello"
val s2 = s + " world"
println(s2)
val s = "hello" //> s : String = hello
val s2 = s + " world" //> s2 : String = hello world
val f2 = () => " !" //> f2 : () => String = <function0>
println(s2 + f2()) //> hello world !