Skip to content

rdalx42/AukScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 

Repository files navigation

auks

AukScript

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!

Syntax & Features

Comments

// This is a comment and it will be ignored.

Variables

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'}

IO

Output text

print("hello")

Get Text

input() // Will only return a string 

If/ElseIf/Else Statements

  if condition == 1 {
    // block
  elseif condition%2==0{
    // block 
  }else{
    // block
  }

While/For Loops

while condition {
  // body

  if different_condition {
    break
  }
}

for var i : int = 0, 100, 1 {
  print (i)
}

Functions

// 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()) 

Built-in Functions

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

About

My own Home-Made Transpiled Programming Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages