====================== Testing on valid cases ====================== parsing file: valid/array_recursion Parsing begins: ++++Parsing complete++++. *********end of test case******************* parsing file: valid/basic_exprs Parsing begins: ++++Parsing complete++++. *********end of test case******************* parsing file: valid/functions Parsing begins: ++++Parsing complete++++. *********end of test case******************* parsing file: valid/io_and_if Parsing begins: ++++Parsing complete++++. *********end of test case******************* parsing file: valid/just_arr Parsing begins: ++++Parsing complete++++. *********end of test case******************* parsing file: valid/just_expr Parsing begins: ++++Parsing complete++++. *********end of test case******************* parsing file: valid/just_if Parsing begins: ++++Parsing complete++++. *********end of test case******************* parsing file: valid/just_vars Parsing begins: ++++Parsing complete++++. *********end of test case******************* parsing file: valid/more_expr Parsing begins: ++++Parsing complete++++. *********end of test case******************* ... ...enter a character to move on to error cases... c ... ====================== Testing on error cases ====================== parsing file: broken/array_recursion Parsing begins: ***Error detected: syntax error on/after row 6, col 14. ---symbol table info--- There are 4 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) sumArrVals, 1, 0 size, 2, 1 arr, 2, 1 data, 1, 3 ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/basic_exprs Parsing begins: ***Error detected: syntax error on/after row 2, col 1. ---symbol table info--- There are 1 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) x, 1, 2 ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/functions Parsing begins: ***Error detected: syntax error on/after row 1, col 18. ---symbol table info--- There are 1 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) sum, 1, 0 ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/io_and_if Parsing begins: ***Error detected: syntax error on/after row 5, col 6. ---symbol table info--- There are 2 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) x, 1, 2 y, 1, 2 ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/just_arr Parsing begins: ***Error detected: syntax error on/after row 0, col 15. ---symbol table info--- There are 1 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) data, 1, 3 ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/just_expr Parsing begins: ***Error detected: Unknown char in input: ' on/after row 0, col 4. ---symbol table info--- There are 0 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) ---end of symbol table--- ***Error detected: syntax error on/after row 0, col 4. ---symbol table info--- There are 0 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/just_if Parsing begins: Attempted use of undeclared function or array: foo ***Error detected: Attempted use of undeclared function or array on/after row 0, col 7. ---symbol table info--- There are 0 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) ---end of symbol table--- Undeclared identifier used in expression: x ***Error detected: Attempted use of undeclared identifier in expression on/after row 0, col 10. ---symbol table info--- There are 0 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) ---end of symbol table--- Undeclared identifier used in expression: y ***Error detected: Attempted use of undeclared identifier in expression on/after row 0, col 12. ---symbol table info--- There are 0 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) ---end of symbol table--- Undeclared identifier used in expression: z ***Error detected: Attempted use of undeclared identifier in expression on/after row 0, col 13. ---symbol table info--- There are 0 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) ---end of symbol table--- ***Error detected: syntax error on/after row 0, col 28. ---symbol table info--- There are 0 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/just_vars Parsing begins: ***Error detected: syntax error on/after row 3, col 0. ---symbol table info--- There are 3 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) foo, 1, 2 blah, 1, 2 ick, 1, 2 ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/redecl_func Parsing begins: Error: redeclaration of item sum within scope 1 ***Error detected: Attempted declaration of function failed on/after row 6, col 12. ---symbol table info--- There are 4 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) sum, 1, 0 y, 2, 1 x, 2, 1 result, 2, 2 ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/redecl_var Parsing begins: Error: redeclaration of item foo within scope 1 ***Error detected: Attempted declaration of variable failed on/after row 1, col 7. ---symbol table info--- There are 1 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) foo, 1, 2 ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/undecl_func Parsing begins: Undeclared identifier used in expression: B ***Error detected: Attempted use of undeclared identifier in expression on/after row 7, col 39. ---symbol table info--- There are 5 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) sum, 1, 0 y, 2, 1 x, 2, 1 result, 2, 2 A, 1, 2 ---end of symbol table--- Undeclared identifier used in expression: B ***Error detected: Attempted use of undeclared identifier in expression on/after row 7, col 48. ---symbol table info--- There are 5 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) sum, 1, 0 y, 2, 1 x, 2, 1 result, 2, 2 A, 1, 2 ---end of symbol table--- ****Parsing failed****. *********end of test case******************* parsing file: broken/undecl_var Parsing begins: Undeclared identifier used in read: z ***Error detected: Attempted use of undeclared identifier in read on/after row 5, col 9. ---symbol table info--- There are 2 entries in the symbol table: Name, ScopeID, Symbol Type (0=func, 1=param, 2=var, 3=arr) x, 1, 2 y, 1, 2 ---end of symbol table--- ****Parsing failed****. *********end of test case*******************