-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VERSION 1.0 ! DOCUMENTATION ALSO DONE!
- Loading branch information
Showing
13 changed files
with
957 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,12 @@ | ||
# KANG2 language | ||
# The Kang2 Programming Language | ||
|
||
A simple interpreted language made as a successor to the failed language Kangoo | ||
> It's currently in pre-alpha. | ||
> Version 0.3 | ||
 | ||
|
||
## Installing | ||
Kang2 is a free, open source and easy to use programming language, mainly for terminal applications. | ||
|
||
First install Node.js at <br> | ||
https://nodejs.org/en/download/ <br> | ||
|
||
Then open your terminal and type: | ||
|
||
`cd [where you saved it]` <br> | ||
`node app.js` <br> | ||
|
||
The code will start running automatically | ||
|
||
## Syntax | ||
|
||
The syntax currently is very minimal.<br> | ||
When startingm the first thing you'll see is the active interpreter<br> | ||
There you type in the code and it'll be interpreted instantly. | ||
|
||
### Math <- TODO make this better | ||
|
||
Type in any equasion to get a result <br> | ||
`>> 1 + 1`<br> | ||
`>> 2` <br><br> | ||
`>> (5 + 5) * 2`<br> | ||
`>> 20`<br> | ||
|
||
### Variables | ||
|
||
To make Variables use the 'var' keyword followed by the identifier, and equals sign and finally the value<br> | ||
`var number = 10`<br> | ||
<br> | ||
Strings --> WIP<br> | ||
Types --> WIP<br> | ||
|
||
The Identifier can now be used like a number <br> | ||
`>> var num1 = 2`<br> | ||
`>> var num2 = 6`<br> | ||
## Documentation | ||
|
||
`>> var num3 = num2 - num1`<br> | ||
`>> num3`<br> | ||
`>> 4` | ||
See `documentation.md` for more info | ||
|
||
### Functions (comming soon) |
Oops, something went wrong.