a gleam implementation of a CS assignment originally written in cpp
Shell 76.9%
C++ 21.7%
Makefile 1.4%
16 1 0

Clone this repository

https://tangled.org/dunkirk.sh/gleam-bible-search
git@knot.dunkirk.sh:dunkirk.sh/gleam-bible-search

For self-hosted knots, clone URLs may differ based on your setup.

README.md

Lab 6#

For this lab the program must parse OT.txt (format below) to find specific references and produce scoped errors if the reference isn't found.

THE BOOK OF GENESIS

CHAPTER 1
1 In the beginning God created the heaven and the earth.
2 And the earth was without form, and void; and darkness [was] upon the face of the deep. And the Spirit of God moved upon the face of the waters.
3 And God said, Let there be light: and there was light.
4 And God saw the light, that [it was] good: and God divided the light from the darkness.

THE BOOK OF PSALMS

PSALM 1
1 Blessed [is] the man that walketh not in the counsel of the ungodly, nor standeth in the way of sinners, nor sitteth in the seat of the scornful.
2 But his delight [is] in the law of the LORD; and in his law doth he meditate day and night.
3 And he shall be like a tree planted by the rivers of water, that bringeth forth his fruit in his season; his leaf also shall not wither; and whatsoever he doeth shall prosper.

The project is layed out as follows:

.
├── build # this directory isn't committed and is ephemeral
│   └── lab66
├── COVERSHEET.md
├── LICENSE.md
├── makefile
├── README.md
├── src
│   └── lab66.cpp
└── test
    ├── OT.txt
    └── test.sh

4 directories, 8 files

Build scripts#

The preferred way to run the program is through make:

make # compiles and runs tests
make run # compiles and runs the program
make clean # clean up the build dir

it is however possible to still do things manually:

mkdir build
cd build
g++ ../src/lab66.cpp -o lab66
./lab66 ../test/OT.txt verses.txt

© 2025-present Kieran Klukas