Skip to content

Commit

Permalink
VERSION 1.0 OUT
Browse files Browse the repository at this point in the history
VERSION 1.0 ! DOCUMENTATION ALSO DONE!
  • Loading branch information
AchoDev committed Jan 29, 2023
1 parent c308b69 commit 6189ebe
Show file tree
Hide file tree
Showing 13 changed files with 957 additions and 291 deletions.
47 changes: 5 additions & 42 deletions README.md
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
![Kang2 Logo](./logo.png)

## 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)
Loading

0 comments on commit 6189ebe

Please sign in to comment.