Skip to content

Commit e54e880

Browse files
committed
Add "Running a program" instructions to the README
1 parent 44f2843 commit e54e880

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@ To build, follow [these setup instructions](/src/libvamc_llvm/README.md) and run
1717
cargo build
1818
```
1919

20+
## Running a program
21+
22+
See [Thread with programs that compile and run](https://github.com/fnune/vampa/issues/3).
23+
24+
Write your program:
25+
26+
```
27+
# test.vam
28+
29+
fun three returning i32 = 3;
30+
31+
apply three
32+
```
33+
34+
Run it:
35+
36+
```sh
37+
cargo run --bin vamc ./test.vam && lli ./test.o
38+
```
39+
2040
## MVP
2141

2242
Since the MVP will only deal with integers, I can skip implementing type-checking because everything is an `i32`. Perhaps I will need to implement a type for functions.

0 commit comments

Comments
 (0)