···11# Lab 6
2233-## Part 1
33+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.
4455-Review the lab write-ups in ZyBooks for Section 6.6.
55+```text
66+THE BOOK OF GENESIS
6777-Edit your code using vi.
88+CHAPTER 1
99+1 In the beginning God created the heaven and the earth.
1010+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.
1111+3 And God said, Let there be light: and there was light.
1212+4 And God saw the light, that [it was] good: and God divided the light from the darkness.
81399-Compile your code using:
1414+THE BOOK OF PSALMS
1515+1616+PSALM 1
1717+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.
1818+2 But his delight [is] in the law of the LORD; and in his law doth he meditate day and night.
1919+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.
2020+```
2121+2222+The project is layed out as follows:
10231124```bash
1212-g++ lab66.cpp -o lab66
2525+.
2626+├── build # this directory isn't committed and is ephemeral
2727+│ └── lab66
2828+├── COVERSHEET.md
2929+├── LICENSE.md
3030+├── makefile
3131+├── README.md
3232+├── src
3333+│ └── lab66.cpp
3434+└── test
3535+ ├── OT.txt
3636+ └── test.sh
3737+3838+4 directories, 8 files
1339```
14401515-## Part 2
4141+### Build scripts
4242+4343+The preferred way to run the program is through make:
16441717-Complete the [Coversheet](coversheet.md) file and submit it with your final solution
4545+```bash
4646+make # compiles and runs tests
4747+make run # compiles and runs the program
4848+make clean # clean up the build dir
4949+```
18501919-## Part 3
5151+it is however possible to still do things manually:
20522121-Ensure all code is committed and pushed to GitHub along with running it in ZyLabs.
5353+```bash
5454+mkdir build
5555+cd build
5656+g++ ../src/lab66.cpp -o lab66
5757+./lab66 ../test/OT.txt verses.txt
5858+```
22592360<p align="center">
2461 <img src="https://raw.githubusercontent.com/taciturnaxolotl/carriage/main/.github/images/line-break.svg" />