SkyLine
  • SkyLine | Introduction
    • Module Overview
    • SkyLine's Development
    • Skyline's Reason
    • SkyLine Syntax
    • SkyLine Concepts
      • Concepts | Modes
  • SkyLine | Technologies
    • Module Overview
    • REPL
      • REPL - Basic usage
      • REPL - Console Design
      • REPL - Commands
    • SLC
      • SLC - What is it
      • SLC - Use cases
      • SLC - Lexical Analysis
      • SLC - Intro To Development
      • SLC - Error System
  • SkyLine | Theory
    • Module Overview
    • Theory | Type Systems
      • Objects | Strings
      • Objects | Integers & Floats
  • SkyLine | Development
    • Module Overview
    • Development | Hello Integers?
  • SL | Hybrid Development
    • Module Overview
    • Hybrid Projects | Advancing
    • Hybrid Projects | Wrapping
    • Hybrid Projects | Using SLC
  • SkyLine | For Abusers
    • SL Abuser | Security Research
    • SL Abuser | Module Overview
    • SL Abuser | Abusing Helps
  • SkyLine Experiments
    • Introduction To Module
      • Caster - IoT Manipulation With SkyLine
        • Caster In Real World Scenarios
          • Cracking The Grounds
        • Caster: Setting Up
        • Caster - Running Caster
        • Caster - Dev Manipulation
          • Caster - Console
          • Caster - Apple Devs
          • Caster - Amazon Devs
          • Caster - Google Devs
          • Caster - Roku Devs
      • SkyNeXt - Hacking The Skies
      • SkyLine - PwnLib
Powered by GitBook
On this page
  1. SkyLine | Theory

Theory | Type Systems

PreviousModule OverviewNextObjects | Strings

Last updated 1 year ago

SkyLine aims to be a compiled programming language while also being interpreted, what do we mean by that? Well, SkyLine is not machine code compiled but plans to allow users to select specific ways of executing code which can include through regex, byte code compilation or even standard evaluation; similar to the Perl programming language. With this, comes quite the wacky syntax and the wacky type system.

Because SkyLine aims to act like a machine code compiled language, it does so by taking advantage of multiple sets of data types. Take a programming language like python for example that uses Integer, String, Boolean, Float and what they consider to be a "byte" data type. SkyLine takes a different twist and allows you to directly use Integer8, Integer16, Integer32, Integer64, Boolean, String etc data types that can make the language much more robust. While most programming language's will auto pick and choose the size's of the value, SkyLine will do something similar but fit it into a direct data type and class based on that data.

The Weirdness within SkyLine | Postfix operations

When it comes to the type system in SkyLine, it can become a bit wacky at times but this is for specific reasons. SkyLine will select the data type of a value based on its size in the case of integer's of course and even allows you to manipulate specific values in ways you might not exactly understand. This is done simply for the idea of simplicity and convenience which oddly enough can come in handy.

For example, when you look at most programming language's, postifx operations (--, ++) are used for integers, in SkyLine; it can be used for most data types.

set xval := int(10);
set yval := true;
set name := "hello!";
set Arrv := [10, 20, 30];

xval--
yval--
name--
Arrv--

println(xval, yval, name, Arrv)

Looking at this code you may be quite confused, but given the type system within SkyLine and how flexible it can be, all of this code is completely valid! The result of these operations look like the following.

The easy way to remember this is like the following

  • Integer-- : Subtracts one ( standard postfix -- operation )

  • Boolean--: if true makes it false

  • String--: Takes one from the string length

  • Array--: Pops the right most value of the array.

By all means, standard computer science says this is a no no, but SkyLine was built by people who are not fond of rules (security researchers and game cheaters). That being said, we just chose to throw that in their with it as well.

Object Invoke's

In SkyLine everything is an object, with each object comes a way to invoke calls! Invokes within SkyLine all change based on their type like every or most programming language's out there. Each data type has its own set which consist of the following.

Broken Experimental Nightly Type System
Page cover image