Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Lastaapps/ctu-bi-pjp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

116 Commits

Repository files navigation

BI-PJP

This is my solution of a semester project in subject BI-PJP - Programming languages and compilers at FIT CTU in Prague in 2022/2023.

The compiler written in Rust compiles the language Mila (almost Pascal) into llvm bytecode.

Types supported are Integer, Float and String. All the basic syntactical constructs are supported: branching, loops, functions, recursion, (global) variables, scopes, expressions both numerical and logical, I/O using the linked C lib.

Libraries, tools

  • llvm
  • Rust
  • inkwell

Building

cargo build

Running

To get llvm bytecode run:

cargo run [filename]

cargo run < filename

To compile the code to an executable binary, run

./mila filename

About

This is my solution of a semester project in subject BI-PJP - Programming languages and compilers at FIT CTU in Prague in 2022/2023.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /