FULL LANGUAGE

To install SATELLITE search the site for “install tutorial” (I haven’t made that page yet though)

HERE I WILL PUT THE FULL LANGUAGE THAT YOU CAN USE IT AS A REFERENCE.

binary numbers have 3 methods: bits.to_number() bits.as_number() and bits.width():

// declare a set of bits
satellite.variable.binary bits = b1010

// convert bits to a number
bits.to_number() = 10

// convert bits as a number
bits.as_number() = 1010

// return the width of the bits
bits.width() = 4

The first two are easy to get confused, b1010 “to a number” (bits converted->.to_number()) = 10, and (bits converted->.as_number() = the number: 1010. As a number will always give you the bits that you are looking at “as a number” and “to a number” will always give you the bits converted into digits.

To display info or print something, enter satellite.console.display(“some string”)

you can also add strings together, or display a number and a string together, the numbers are converted to strings by satellite — the motto of the language is if we can do it for the user, then we do it for them.

// declare a variable so we can display it
satellite.variable.string some_chars = "some string"

// display the string
satellite.console.display(some_chars)

// add a number and display it
satellite.console.display(some_chars + 5)

This is totally different from actually “adding” a number to a string, to do that, you have to type the name twice.

// declare another variable so we can add to it
satellite.variable.string some_string = "hello, "

// add a number to the string
some_string = some_string + 50

// display both
satellite.console.display(some_string)

// the above will display "hello, 50"

It’s set like this because you may *NOT* want to add to the string at the time you are displaying it, so you can enter:

// declare a string to use
satellite.variable.string some_word = "hello, "

// display the string with another string
satellite.console.display(some_word + "world!")

In the above case, if it were set to “add” the strings permanently together, we would have to type MORE code to separate them, so it only adds them together when you type it like this:

// declare another string to use
satellite.variable.string another_string = "hello, "

// add something to the string
another_string = another_string + "world!"

// display the string
satellite.console.display(another_string)

// this would finally display "hello, world!"