Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Variables/EasyLang/variables.easy
Normal file
23
Task/Variables/EasyLang/variables.easy
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# it is statically typed
|
||||
#
|
||||
# global number variable
|
||||
n = 99
|
||||
print n
|
||||
# global array of numbers
|
||||
a[] = [ 2.1 3.14 3 ]
|
||||
#
|
||||
proc foo . .
|
||||
# i is local, because it is first used in the function
|
||||
for i = 1 to len a[]
|
||||
print a[i]
|
||||
.
|
||||
.
|
||||
call foo
|
||||
#
|
||||
# string
|
||||
domain$ = "easylang.dev"
|
||||
print domain$
|
||||
#
|
||||
# array of strings
|
||||
fruits$[] = [ "apple" "banana" "orange" ]
|
||||
print fruits$[]
|
||||
Loading…
Add table
Add a link
Reference in a new issue