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 8c14b75d authored by Jonathan Evans's avatar Jonathan Evans

fixed compare output script

parent 78d70964
......@@ -23,7 +23,7 @@ test_files=`ls ./sample_input`
diff_files=0
for file in $test_files; do
./evanshogan_parser < ./sample_input/$file > ./my_output/$file.out
./evanshogan_parser ./sample_input/$file > ./my_output/$file.out
diff_lines=`diff ./my_output/$file.out \
./expected_output/$file.out \
......
EXPR type is: INT
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
___Entering new scope...
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Exiting scope...
___Adding sub to symbol table
Line 3: Arg 1 must be integer
Bye!
Line 1: Arg 2 must be integer
Bye!
Line 1: Arg 2 must be integer
Bye!
Line 1: Arg 1 must be integer
Bye!
___Entering new scope...
___Adding x to symbol table
___Exiting scope...
___Adding bob to symbol table
___Adding fish to symbol table
___Entering new scope...
......@@ -12,8 +10,11 @@ ___Adding x to symbol table
___Exiting scope...
EXPR type is: INT_OR_STR_OR_BOOL
---- Completed parsing ----
___Adding sandwich to symbol table
___Exiting scope...
Value of the expression is: 0
---- Completed parsing ----
Bye!
EXPR type is: INT_OR_STR
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
EXPR type is: INT_OR_STR
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
EXPR type is: INT_OR_BOOL
---- Completed parsing ----
Bye!
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Exiting scope...
___Adding z to symbol table
Line 7: Arg 1 cannot be a function
Bye!
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Exiting scope...
___Adding z to symbol table
Line 7: Arg 2 cannot be a function
Bye!
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Exiting scope...
___Adding z to symbol table
Line 7: Arg 3 cannot be a function
Bye!
EXPR type is: INT
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
EXPR type is: INT
---- Completed parsing ----
Bye!
___Entering new scope...
___Exiting scope...
EXPR type is: FUNCTION
---- Completed parsing ----
Bye!
___Entering new scope...
___Exiting scope...
EXPR type is: INT_OR_STR
---- Completed parsing ----
Bye!
___Entering new scope...
___Exiting scope...
EXPR type is: BOOL
---- Completed parsing ----
Bye!
___Entering new scope...
___Exiting scope...
EXPR type is: BOOL
---- Completed parsing ----
Bye!
___Entering new scope...
___Entering new scope...
___Adding x to symbol table
___Exiting scope...
___Adding f to symbol table
___Exiting scope...
EXPR type is: INT_OR_STR_OR_BOOL
---- Completed parsing ----
Bye!
___Entering new scope...
___Entering new scope...
___Adding x to symbol table
___Exiting scope...
___Adding f to symbol table
___Exiting scope...
EXPR type is: INT
---- Completed parsing ----
Bye!
___Entering new scope...
___Entering new scope...
___Exiting scope...
Line 1: Arg 2 cannot be a function
Bye!
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Adding z to symbol table
___Exiting scope...
Line 1: Too many parameters in function call
Bye!
___Entering new scope...
___Exiting scope...
Line 1: Too many parameters in function call
Bye!
......@@ -3,11 +3,11 @@ ___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Adding z to symbol table
___Exiting scope...
EXPR type is: INT
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
......@@ -7,6 +7,7 @@ ___Adding z to symbol table
___Exiting scope...
Line 1: Too few parameters in function call
Bye!
Value of the expression is: 0
---- Completed parsing ----
___Entering new scope...
___Exiting scope...
EXPR type is: INT
---- Completed parsing ----
Bye!
___Entering new scope...
___Exiting scope...
EXPR type is: STR
---- Completed parsing ----
Bye!
___Entering new scope...
___Exiting scope...
EXPR type is: INT_OR_STR
---- Completed parsing ----
Bye!
___Entering new scope...
___Adding s to symbol table
___Exiting scope...
EXPR type is: STR
---- Completed parsing ----
Bye!
___Entering new scope...
___Adding x to symbol table
___Exiting scope...
EXPR type is: INT
---- Completed parsing ----
Bye!
___Entering new scope...
___Exiting scope...
EXPR type is: BOOL
---- Completed parsing ----
Bye!
___Entering new scope...
___Entering new scope...
___Exiting scope...
___Exiting scope...
Line 2: Arg 2 cannot be a function
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Bye!
Value of the expression is: 0
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
___Entering new scope...
___Exiting scope...
Line 1: Arg 1 cannot be a function
Bye!
___Entering new scope...
___Exiting scope...
Line 1: Arg 2 cannot be a function
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Bye!
___Entering new scope...
___Adding x to symbol table
___Entering new scope...
___Adding y to symbol table
___Exiting scope...
___Entering new scope...
___Adding f0 to symbol table
___Adding z to symbol table
___Entering new scope...
___Adding x to symbol table
___Adding w to symbol table
___Entering new scope...
___Adding p to symbol table
___Exiting scope...
___Adding f1 to symbol table
___Entering new scope...
___Exiting scope...
___Adding x1 to symbol table
___Adding x2 to symbol table
___Adding x3 to symbol table
___Adding x4 to symbol table
___Adding x5 to symbol table
___Adding x6 to symbol table
___Adding x7 to symbol table
___Adding x8 to symbol table
___Adding x9 to symbol table
___Exiting scope...
___Adding fn to symbol table
___Exiting scope...
EXPR type is: STR
---- Completed parsing ----
___Exiting scope...
Value of the expression is: 0
---- Completed parsing ----
Bye!
Value of the expression is: 0
---- Completed parsing ----
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Exiting scope...
Line 1: Arg 1 cannot be a function
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Bye!
Value of the expression is: 0
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Value of the expression is: 0
---- Completed parsing ----
Value of the expression is:
\ No newline at end of file
Value of the expression is: 0
---- Completed parsing ----
EXPR type is: STR
---- Completed parsing ----
Bye!
EXPR type is: INT
---- Completed parsing ----
Bye!
___Entering new scope...
___Adding s to symbol table
___Exiting scope...
EXPR type is: STR
---- Completed parsing ----
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Bye!
___Entering new scope...
___Entering new scope...
___Adding x to symbol table
___Adding y to symbol table
___Exiting scope...
___Adding sub to symbol table
Line 3: Arg 1 cannot be a function
Bye!
Line 1: Arg 1 must be integer or string
Bye!
Line 1: Arg 2 must be integer or string
Bye!
___Entering new scope...
___Exiting scope...
Line 1: Arg 1 must be integer or string
Bye!
___Entering new scope...
___Exiting scope...
Line 1: Arg 2 must be integer or string
Bye!
EXPR type is: BOOL
---- Completed parsing ----
Bye!