This server is intended for use for Academic Classwork related Git repositories only. Projects/repositories will generally be removed after 6 months following close of the semester. Inactive repositories from previous semester are now being archived when no activity for 365 days. They are renamed and marked as 'archived'. After 90 days in that state they will be removed from the system completely.

Commit 7e10b953 authored by Jonathan Evans's avatar Jonathan Evans

updated make clean and compare script

parent 0e5ccc0c
......@@ -3,7 +3,7 @@
default: all
all: mfpl
mfpl: parser.tab.c lex.yy.c
mfpl: lex.yy.c parser.tab.c
g++ parser.tab.c -o mfpl
parser.tab.c: parser.y
......@@ -14,4 +14,5 @@ lex.yy.c: lexer.l
clean:
-@rm -f lex.yy.c
-@rm -f parser.tab.c
\ No newline at end of file
-@rm -f parser.tab.c
-@rm -f mfpl
\ No newline at end of file
......@@ -16,15 +16,14 @@
# to the correct format specified in Canvas.
# Otherwise, make sure your executable is named `a.out`
# or update the first line in the for loop.
#flex mfpl.l
#bison mfpl.y
#g++ mfpl.tab.c
make
test_files=`ls ./sample_input`
diff_files=0
for file in $test_files; do
a.out < ./sample_input/$file > ./my_output/$file.out
mfpl < ./sample_input/$file > ./my_output/$file.out
diff_lines=`diff ./my_output/$file.out \
./expected_output/$file.out \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment