Update readme and examples
parent
067150a682
commit
83aa5bd4d3
10
README.md
10
README.md
|
@ -12,9 +12,17 @@ Main repo: https://git.sudoer.ch/me/really-bad-compiler-in-haskell
|
|||
|
||||
## Run Instructions
|
||||
|
||||
- Use `stack run <file>` to run the program (for example, `stack run example/1`).
|
||||
- Use `stack run <file>` to run the program (for example, `stack run example/1.fs`).
|
||||
- The LLVM will be generated as `a.out.ll`, and the executable will be generated as `a.out`.
|
||||
|
||||
## Language
|
||||
|
||||
It is planned to be similar to Forth, unless it turns out that Forth does not have the features I am looking for.
|
||||
|
||||
Currently, it supports positive integers, `+`, `-`, `*`, `/`, and `.` (pops from stack and outputs to console).
|
||||
|
||||
The supported syntax for this compiler aims to be compatible with Gforth.
|
||||
|
||||
## To edit
|
||||
|
||||
I recommend using VSCodium, which is preconfigured to have syntax highlighting and (currently broken) debugging features and will automatically suggest the Haskell extensions to install.
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
5 3 * 2 + .
|
|
@ -0,0 +1 @@
|
|||
6 8 3 / + .
|
Reference in New Issue