Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
43
Task/Variables/Ursa/variables.ursa
Normal file
43
Task/Variables/Ursa/variables.ursa
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# variable declaration
|
||||
#
|
||||
# declare [type] [name]
|
||||
# -or-
|
||||
# decl [type] [name]
|
||||
decl int test
|
||||
|
||||
# initialization / assignment
|
||||
#
|
||||
# the set statement can be used to init variables and
|
||||
# assign values to them
|
||||
set test 10
|
||||
|
||||
# datatypes
|
||||
#
|
||||
# ursa currently has 10 built-in types, but
|
||||
# more may be added in the future.
|
||||
# boolean
|
||||
# double
|
||||
# file
|
||||
# function
|
||||
# int
|
||||
# iodevice
|
||||
# port
|
||||
# serverport
|
||||
# string
|
||||
# task
|
||||
#
|
||||
# also, java classes may be used as data types
|
||||
# cygnus/x ursa
|
||||
|
||||
# scope
|
||||
#
|
||||
# there is a global variable space, and functions
|
||||
# have their own scope. control statements (for,
|
||||
# if, try, while) don't have their own scope yet,
|
||||
# but this will be implemented in the near future
|
||||
|
||||
# referencing
|
||||
#
|
||||
# variables are referenced by their name
|
||||
decl port p
|
||||
out p endl console
|
||||
Loading…
Add table
Add a link
Reference in a new issue