LMH01 / alpha_tui

My attempt to write a runtime environment and debugger for the Alpha-Notation used in my SysInf lecture.
GNU General Public License v3.0
14 stars 1 forks source link

Downloads Downloads Coverage Pipeline status License

alpha_tui

Demo

This is my attempt at writing a runtime environment and debugger for the Alpha-Notation used in my Systemnahe Informatik lecture at university.

Programs are read in and interpreted, a terminal ui is then opened where you can run the program line by line or by using breakpoints. It is also supported to start a playground environment by using the playground command.

Pull requests and bug reports are welcome. See CONTRIBUTING.md for further details.

Contents

  1. Getting started
  2. Interface and usage
  3. Instructions
  4. CLI options

Getting started

  1. Download the newest release specific for your system
  2. Extract the .zip file
  3. Create a program by using the text editor of your choice or try an example program located in examples/programs. The examples might help you write your program.
  4. Run alpha_tui by opening a terminal in the folder and then typing .\alpha_tui load FILENAME, for an example program this command could look like this: .\alpha_tui load examples/programs/faculty.alpha
  5. The terminal ui will open where you can run the program line by line by using the [r] key

Compile from source

To compile the program from source the rust toolchain is needed (install via rustup). Once installed you can run the program by typing cargo run. To submit arguments you can use --, for example cargo run -- -h will print help.

Using nix

This Repository provides a flake. If you have flakes enabled you can use

nix shell github:lmh01/alpha_tui

to start a shell in which alpha_tui is installed.