📝 update readme
This commit is contained in:
parent
4a86abb000
commit
8222e4fd38
25
README.md
25
README.md
@ -1,17 +1,26 @@
|
||||
# juice-script
|
||||
![](https://raw.githubusercontent.com/DrMaxNix/juice-script/main/logo/256.png)
|
||||
![JuiceScript](https://raw.githubusercontent.com/DrMaxNix/juice-script/main/assets/logo/256.png)
|
||||
|
||||
[![GitHub release](https://img.shields.io/badge/release-none%20(indev)-orange)](https://github.com/DrMaxNix/juice-script)
|
||||
[![GitHub release](https://img.shields.io/github/release/DrMaxNix/juice-script.svg?logo=github)](https://github.com/DrMaxNix/juice-script/releases/latest)
|
||||
[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/DrMaxNix/juice-script/blob/main/LICENSE)
|
||||
[![Maintaner](https://img.shields.io/badge/maintainer-DrMaxNix-blue)](https://www.drmaxnix.de)
|
||||
[![Maintaner](https://img.shields.io/badge/maintainer-DrMaxNix-orange)](https://www.drmaxnix.de)
|
||||
|
||||
Basic assembly-like high-level programming language
|
||||
|
||||
## Concept
|
||||
I already wrote an interpreter for juice in php two years ago but I wanted it to be more user friendly so I decided to redo it in javascript.
|
||||
|
||||
This is an example of the old juicescript:
|
||||
|
||||
![Example](https://raw.githubusercontent.com/DrMaxNix/juice-script/main/pictures/oldjuice.png "Example")
|
||||
## Example
|
||||
```asm
|
||||
move $q 0
|
||||
|
||||
(Ignore the code itself making no sense and having horrible syntax and horrible syntax-highlighting, that's why I'm doing a second version)
|
||||
loop:
|
||||
echo $q
|
||||
add $q 1
|
||||
|
||||
ifl $q < 10
|
||||
jump "loop"
|
||||
```
|
||||
|
||||
```asm
|
||||
0123456789
|
||||
```
|
||||
|
Reference in New Issue
Block a user