Skip to content

Commit

Permalink
Update README.md with run instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Dec 24, 2023
1 parent 0e41e67 commit acaf489
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ funcdef fib n int -> int =
funcdef main n int -> int = fib(n)
```

To Run

```bash
KariLang ./program.txt 15
```

## About the language

It has only 2 data types, `int` and `bool`.
Expand Down Expand Up @@ -49,5 +55,5 @@ flex ./lexer.l

Compiler the language
```bash
cc -Wall -g ./main.c ./semantics.c ./interpreter.c ./lex.yy.c ./parser.tab.c
cc -Wall -g ./main.c ./semantics.c ./interpreter.c ./lex.yy.c ./parser.tab.c -o ./KariLang
```

0 comments on commit acaf489

Please sign in to comment.