Merge branch 'main' of gitlab.cs.wallawalla.edu:lustje/language-interpreter-lab into josh3

This commit is contained in:
Josh 2024-10-30 20:28:04 -07:00
commit bf1248b078
1 changed files with 22 additions and 26 deletions

View File

@ -21,7 +21,6 @@ bison --defines=token.h --output=parser.c -v parser.bison
THe `-v` flag will create a `parser.output` which represents the grammar in text form. THe `-v` flag will create a `parser.output` which represents the grammar in text form.
### Running the Parser ### Running the Parser
Then build the `main.c`, `parcer.c` and `scanner.c` using **gcc**. Then build the `main.c`, `parcer.c` and `scanner.c` using **gcc**.
@ -38,7 +37,6 @@ For example here is a command for `samples/program.c`
./parser.out < samples/program.c ./parser.out < samples/program.c
``` ```
### Testing the Parser ### Testing the Parser
Then build the `main_test.c`, `parcer.c` and `scanner.c` using **gcc**. Then build the `main_test.c`, `parcer.c` and `scanner.c` using **gcc**.
@ -54,43 +52,41 @@ Then execute the test suite using `./parser_test.out`.
./parser_test.out ./parser_test.out
``` ```
### Using Make ### Using Make
Alternatively you can use the supplied make file. Alternatively you can use the supplied make file.
* Build main program - `make` - Build main program - `make`
* Build test program - `make test` - Build test program - `make test`
* Clean up build files - `make clean` - Clean up build files - `make clean`
## Tests ## Tests
* Write test for various statements in your language - Write test for various statements in your language
* assignment - assignment - Riley
* print - print - Josh (write test)
* mathmatical expressions - mathmatical expressions - Jenessy
* boolean expressions - boolean expressions - Jenessy
* branching - branching - Josh
* looping - looping - Riley
* Write a test for each sample test file. - Write a test for each sample test file.
* Hello World! - Hello World! - Josh (already done)
* Quadratic - Quadratic - Jenessy
* Sorting - Sorting - Riley
## Grading Rubric ## Grading Rubric
The grading will be over the following categories. The grading will be over the following categories.
Points Description Points Description
----------- ------------------------------------
60 points Ability to parse — Six different language statements
10 points Ability to parse — Hello world
10 points Ability to parse — Quadratic equation
10 points Ability to parse — Integer sorting
10 points Report formatting and readability
---
60 points Ability to parse — Six different language statements
10 points Ability to parse — Hello world
10 points Ability to parse — Quadratic equation
10 points Ability to parse — Integer sorting
10 points Report formatting and readability
## Turn In ## Turn In