Skip to content

Basic datatypes

Grandiras edited this page Aug 19, 2022 · 3 revisions

Object (base type)

Keyword

object

Binary operations

  • nothing

Unary operations

  • nothing

Conversions

  • Explicit
    • nothing
  • Implicit
    • (not implemented yet)

Integer (32-bit int)

Keyword

int

Binary operations

  • Addition (with Integer -> Integer, with Double -> Double)
  • Division (with Integer -> Integer, with Double -> Double)
  • Equal (with Integer or Double -> Boolean)
  • GreaterThan (with Integer or Double -> Boolean)
  • GreaterThanOrEqual (with Integer or Double -> Boolean)
  • LessThan (with Integer or Double -> Boolean)
  • LessThanOrEqual (with Integer or Double -> Boolean)
  • Multiplication (with Integer -> Integer, with Double -> Double)
  • NotEqual (with Integer or Double -> Boolean)
  • Substraction (with Integer -> Integer, with Double -> Double)

Unary operations

  • Negation (Integer -> Integer)

Conversions

  • Explicit
    • String
    • Object
  • Implicit
    • (not implemented yet)

Double (64-bit float)

Keyword

double

Binary operations

  • Addition (with Integer or Double -> Double)
  • Division (with Integer or Double -> Double)
  • Equal (with Integer or Double -> Boolean)
  • GreaterThan (with Integer or Double -> Boolean)
  • GreaterThanOrEqual (with Integer or Double -> Boolean)
  • LessThan (with Integer or Double -> Boolean)
  • LessThanOrEqual (with Integer or Double -> Boolean)
  • Multiplication (with Integer or Double -> Double)
  • NotEqual (with Integer or Double -> Boolean)
  • Substraction (with Integer or Double -> Double)

Unary operations

  • Negation (Double -> Double)

Conversions

  • Explicit
    • nothing
  • Implicit
    • (not implemented yet)

Char

Keyword

char

Binary operations

  • Addition (with Char or String -> String)
  • Equal (with Char or String -> Boolean)
  • NotEqual (with Char or String -> Boolean)

Unary operations

  • nothing

Conversions

  • Explicit
    • nothing
  • Implicit
    • (not implemented yet)

String

Keyword

string

Binary operations

  • Addition (with Char or String -> String)
  • Equal (with Char or String -> Boolean)
  • NotEqual (with Char or String -> Boolean)

Unary operations

  • nothing

Conversions

  • Explicit
    • nothing
  • Implicit
    • (not implemented yet)

Boolean

Keyword

bool

Binary operations

  • And (with Boolean -> Boolean)
  • Equal (with Boolean -> Boolean)
  • NotEqual (with Boolean -> Boolean)
  • Or (with Boolean -> Boolean)

Unary operations

  • Not (Boolean -> Boolean)

Conversions

  • Explicit
    • nothing
  • Implicit
    • (not implemented yet)