-
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.
- Loading branch information
Showing
5 changed files
with
27 additions
and
0 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,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 | ||
``` |
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,2 +1,3 @@ | ||
PRINT "hello world" | ||
HALT | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.