My own Home-Made Transpiled Programming Language that currently transpiles to C++ via G++.
Not-In-Development Anymore!!
Aukscript has only only been tested on windows!
// This is a comment and it will be ignored.var number : int = 0
var float_num : float = 0.554+32
var character : char = 'h'
var str : string = "Hello, World!"
var foo_array : arr [char] = {str[0],'d'}print("hello")input() // Will only return a string if condition == 1 {
// block
elseif condition%2==0{
// block
}else{
// block
}while condition {
// body
if different_condition {
break
}
}
for var i : int = 0, 100, 1 {
print (i)
}
// quick notice; functions are placed
// in a different scope, this means
// that you can't access variables
// declared above them within their body.
fn setAtIndex(target:arr[int],indx:int):arr[int] {
target[indx] = 10
return target
}
var new_arr : arr[int] = setAtIndex({1,2},0)
fn greet(name:string) : void {
print ("hello: ",name)
return
}
greet(input()) print() // outputs text
input() // returns program input
stoi() // string - to - int
len() // returns length of given param
stof() // string - to - float
clear() // clears output
len_arr() // returns lenght of given param (good syntactic practice to use for arrays)
sleep() // sleeps a number of miliseconds
key() // waits for a key press and returns one character.
kbhit() // checks if a key is available without waiting, so you can call key()
random() // returns random value range [x,y]
remove_at() // takes arr,index and removes at index
push_back() // adds to array given value