add: main function

This commit is contained in:
2026-03-12 21:09:49 -07:00
parent c0951fc9d4
commit 90de2206db
9 changed files with 1062 additions and 671 deletions

View File

@@ -77,3 +77,7 @@ cargo run --release -- -o main hello.rpg
## Implementation
The RPG language was converted to an BNF, and fed into the bnf crate (https://docs.rs/bnf/latest/bnf/).
The parse tree generated here is then given to LLVM, via Inkwell (https://crates.io/crates/inkwell) to create executable binaries.
The binary can run standalone on a Linux system. Only the built-in function make hello world are implemented, and link to functions writen in Rust that are available as a shared library.