taiga-lang
v1.0.0-update.1
Published
A simple, minimalist, and lightweight programming language/Javascript syntax-superset
Downloads
10
Readme
#you can even print two different things on the same line using a semicolon pr "Hello World"; pr "Hello Earth" -> output is: Hello World Hello Earth <- If you need to (for whatever reason) use a function for this purpose, there is a print function in Taiga
#alternatively this
def helloWorld pr "Hello World" end helloWorld()
#output is: Hello World If you are using arguements, you can just follow the regular Javascript function arguement syntax like this
#alternatively this
func helloWorld ret "Hello World" end pr helloWorld()
#output is: Hello World
#output is: The number is 1
#output is: The number is 4
-> output is: 0 1 2 3 4 5 6 7 8 9 <- In this example, we create an interval that starts at 0, and them keeps looping until the number becomes equal to (or greater than) the final interval. Inside the loop, we print x every time we go through the loop, and the value of x increments by one each time we go through the loop.
#output is: X and Y are equal and equal to 1 Here is an example with the OR operator (or)
Here is an example with the NOT operator (not)
-> output is: Hello World No Error! <-