Another update from ingydotnet^djgoku

This commit is contained in:
Ingy döt Net 2015-11-18 06:14:39 +00:00
parent 91df62d461
commit 948b86eafa
7604 changed files with 108452 additions and 22726 deletions

View file

@ -0,0 +1,13 @@
#import system.
#symbol program =
[
#var s := "World".
s := "Hello " + s.
console writeLine:s.
// Alternative way
#var s2 := String new:"World".
s2 insert:"Hello " &at:0.
console writeLine:s2.
].

View file

@ -0,0 +1,2 @@
str1 = "World!"
str = "Hello, " <> str1

View file

@ -0,0 +1,2 @@
(defun glue (str1 str2)
(concat str1 str2) )

View file

@ -0,0 +1,2 @@
(defun glue (str1 str2)
(format "%s%s" str1 str2) )

View file

@ -0,0 +1,3 @@
(setq str "World!")
(setq str (glue "Hello, " str) )
(insert str)

View file

@ -0,0 +1,3 @@
$str = "World!"
$str = "Hello, " + $str
$str

View file

@ -1,17 +1,14 @@
/*──────────────── using literal abuttal. */
/*──────────────── this won't work as the first */
/*──────────────── variable name is X or B */
zz='llo world!'
zz='he'zz
zz= 'llo world!' /*─────────────── using literal abuttal.────────────*/
zz= 'he'zz /*This won't work if the variable name is X or B */
say zz
/*──────────────── using literal concatenation. */
gg = "llo world!"
gg = "llo world!" /*─────────────── using literal concatenation.──────*/
gg = 'he' || gg
say gg
/*──────────────── using variable concatenation.*/
aString = 'llo world!'
bString = "he"
aString = bString || aString
aString= 'llo world!' /*─────────────── using variable concatenation.─────*/
bString= "he"
aString= bString || aString
say aString

View file

@ -0,0 +1,3 @@
s = "bar"
s = "foo" & s
WScript.Echo s