Git Product home page Git Product logo

auroria-lang's Introduction

Auroria-Lang

Lightweight, bytecode-serialized interpreted language. Supporting loops, if/else statements, functions and more.

I'll of course write an explanation on the C++ side when it isn't 4am.

Everything is buggy, its v0.1!

Coding in Auroria

Intro

  • Auroria is a scripting language and can work without needing a main function. The following code is all that is necessary.
print("Hello World!")

Variables

  • Variables do not have types and are defined by just typing the following
foo = 5

CFunctions

  • There is like 3 cfunctions, mostly for testing for when I write a lot more later.
print("Hello World!")
sin(90)
parsebool(0) -> returns "false"

AFunctions

  • Writing functions is simple and can be done by adding () or inputting arguments (x,y)
printsomething() {
print("Hi")
}

printsomething()
  • With arguments:
sum(x, y){
return(x + y)
}

print(sum(1,2))

If Else

  • If Else statements are simple and done like this
if(1 > 2)
{
}
else{
}
  • Supported bitwise operators are: > | < | >= | <= | != | == | !
  • If strings are inputted in greater/less than, their lengths will be compared.

Loops

  • Loops take 2 args (int/string, var) and look like this.
i = 0
for(10, "i") {
print(i)
}
  • And with string iteration, this would print H, e, l, l, o, respectively.
i = 0
for("Hello", "i") {
print(i)
}

Much more to come, enjoy scripting :)

  • Chris

auroria-lang's People

Contributors

awesomemc101 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.