My programming language.
Find a file
Sajidur Rahman 6288fc4582
All checks were successful
CI / Lint (push) Successful in 28s
CI / Build (push) Successful in 26s
CI / Test (push) Successful in 29s
ci: added workflow for testing
2026-09-28 00:28:28 +02:00
.forgejo/workflows ci: added workflow for testing 2026-09-28 00:28:28 +02:00
src test: added tests 2026-09-27 23:17:53 +02:00
.gitignore test: added tests 2026-09-27 23:17:53 +02:00
Cargo.lock feat(scanner): handles proper bytes instead of only ASCII 2026-09-08 01:53:44 +02:00
Cargo.toml feat(scanner): handles proper bytes instead of only ASCII 2026-09-08 01:53:44 +02:00
README.md test: added tests 2026-09-27 23:17:53 +02:00

Octo

My programming language.

Getting Started

Prerequisites

Installation

  1. Clone the repository.

  2. Run the program.

    # Run a file
    cargo run -- run /path/to/file
    
    # Run using the interactive prompt, which you can quit with \q
    cargo run -- run
    

Testing

  1. Run the tests.

    cargo test
    

Code coverage

You need to be on Rust nightly.
You might also need to install some LLVM-specific tools.

  1. Install grcov.

    cargo install grcov
    
  2. Run the tests with instrumentation and raw profiling data from LLVM enabled.

    CARGO_INCREMENTAL=0 \
    RUSTFLAGS="-C instrument-coverage -Z coverage-options=branch" \
    RUSTDOCFLAGS="-C instrument-coverage -Z unstable-options --persist-doctests target/debug/doctestbins" \
    LLVM_PROFILE_FILE="target/coverage/cargo-test-%p-%m.profraw" \
    cargo test
    
  3. Generate an HTML coverage report.

    grcov target/coverage \
        --source-dir . \
        --keep-only 'src/*' \
        --binary-path target/debug \
        --output-types html \
        --output-path target/coverage/html \
        --branch \
        --excl-line grcov-ignore
    
  4. You can open the HTML report located at target/coverage/html/index.html in your browser.

Credits