2023-07-01 11:58:00 -04:00
|
|
|
# it is statically typed
|
|
|
|
|
#
|
|
|
|
|
# global number variable
|
|
|
|
|
n = 99
|
|
|
|
|
print n
|
|
|
|
|
# global array of numbers
|
|
|
|
|
a[] = [ 2.1 3.14 3 ]
|
|
|
|
|
#
|
2025-06-11 20:16:52 -04:00
|
|
|
proc foo .
|
2023-07-01 11:58:00 -04:00
|
|
|
# i is local, because it is first used in the function
|
|
|
|
|
for i = 1 to len a[]
|
|
|
|
|
print a[i]
|
|
|
|
|
.
|
|
|
|
|
.
|
2023-09-16 17:28:03 -07:00
|
|
|
foo
|
2023-07-01 11:58:00 -04:00
|
|
|
#
|
|
|
|
|
# string
|
2024-10-16 18:07:41 -07:00
|
|
|
domain$ = "easylang.online"
|
2023-07-01 11:58:00 -04:00
|
|
|
print domain$
|
|
|
|
|
#
|
|
|
|
|
# array of strings
|
|
|
|
|
fruits$[] = [ "apple" "banana" "orange" ]
|
|
|
|
|
print fruits$[]
|