SkyLine Syntax
Last updated
Last updated
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.
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.
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.