diff --git a/docs/index.html b/docs/index.html index cb65752..ece8f11 100644 --- a/docs/index.html +++ b/docs/index.html @@ -14,7 +14,9 @@

Navigation

@@ -88,17 +90,30 @@ while number < 10 {

That's it!

You now know everything you need to know about Solstice to start programming! You can continue reading for more information.

-
-

Types

+
+

Type System

Solstice's type system is currently a work in progress, but what is so far implemented will be detailed.

-

Value Types

- +
+

Value Types

+
    +
  • int: Signed 64 bit integer
  • +
  • double: Double prescision floating point number
  • +
  • string: Character array
  • +
  • char: A single character
  • +
  • bool: Either true or false
  • +
+
+
+

Type Checker

+

Solstice statically checks types at compile time to ensure your data is used as intended. These are the details of the type checker.

+
    +
  • Types of variables when setting with = are autoinferred and cannot be provided by the user. All variables must have a value.
  • +
  • When setting a variable with =, it's type must not mutate in any way.
  • +
  • Functions must have types annotated. There is no "any" type.
  • +
  • When using operators, integers are able to promote to doubles where required. No other types can automatically convert.
  • +
  • All equality operators require the same type on both sides of the equality.
  • +
+

Built In Functions

diff --git a/playground/playground.wasm b/playground/playground.wasm index 040f261..bd2ea10 100755 Binary files a/playground/playground.wasm and b/playground/playground.wasm differ