Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
m3rashid committed Feb 9, 2024
1 parent d1dbdd1 commit bc759b6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
## Lol Lang

Lol lang is an assembly style interpreted language with its syntax inspired from assembly

- Currently works only with integers
- supports the following features
- Refer the `examples` folder for code examples

| Feature | Description |
| --------- | ------------------------------------------------- |
| PUSH | Push to the stack |
| POP | Pop from the stack |
| ADD | add last 2 values from the stack |
| SUB | subtracts last 2 values from the stack |
| PRINT | prints things to the screen |
| READ | read input from the user |
| JUMP.EQ.0 | jump if top of the stack is zero |
| JUMP.GT.0 | jump if the top of the stack is greater than zero |
| HALT | marks the end of the program |

## Usage

```bash
# build the project
make build

# run the project
bin/lol <file_name>.lol
```
1 change: 1 addition & 0 deletions files/1.lol → examples/1.lol
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PRINT "hello world"
HALT

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bc759b6

Please sign in to comment.