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
  • Overview of This Module
  • SkyLine Syntax | Basic program
  1. SkyLine | Introduction

SkyLine Syntax

PreviousSkyline's ReasonNextSkyLine Concepts

Last updated 1 year ago

Overview of This Module

This module will be talking and walking you through the SkyLine syntax which will talk about its design and hybrid focus as well as the language's base design. This will not go over everything and will only go over the bare basic syntax to give you a good idea. The walk through will be a good example of what you could do with the language.

SkyLine Syntax | Basic program

The SkyLine programming language was designed to not only help security researchers easily automate tools and frameworks or even create their own but was also designed to have an easy to understand syntax. The program below is how you can define and execute a function within the language.

define C_Data() {
    return 10 - 20;
};

C_Data().Outln()

Which will produce the result of 10 after execution. This program is quite weird so lets break it down

  • Functions: Within SkyLine functions are defined with the define or func keyword. These keywords are all parsed and executed the same and do the same exact thing. After func or define is declared you then place the function name and declare a block statement with brackets and end that statement with a semicolon.

  • Function Returns: In SkyLine function returns must be used with either ret or return keywords . In this function, the return is returning the result of the operation subtracting 10 from 20.

  • Calls and Invokes: C alling a function will require that you simply place the function name followed by a set or parenthesis. In the code above we have the call of C_Data().Outln() which for some is confusing, why not just use a print or printline function? SkyLine has both statements but using Outln() ill be specific to sets of data types but this is a good example to demo the object call functions. This case, integers have a function called Outln() that prints the existing value.

SkyLine REPL
Page cover image