----------------------------------------------------------------- Samples of syntax error messages from the parser for Assignment 5 ----------------------------------------------------------------- Enter file name for reading: - Successfully opened input stream '-' PARSER: Now parsing '-' to 'STDOUT' scanner_init: The Scanner defines 17 token types scanner_init: Reading from '-'. a; ian.txt: File - Line 1: Expecting Equal Sign, found Semicolon ';' ian.txt: File - Line 1: Skipped to Semicolon ';' a=; ian.txt: File - Line 2: Expecting Identifier, Unsigned Integer, or Left Parenthesis; found Semicolon ';' ian.txt: File - Line 2: Skipped to Semicolon ';' 9; ian.txt: File - Line 3: Expecting start of statement, found Unsigned Integer '9' ian.txt: File - Line 3: Skipping over Unsigned Integer '9' ian.txt: File - Line 3: Skipped to Semicolon ';' print; ian.txt: File - Line 4: Expecting Identifier, Unsigned Integer, or Left Parenthesis; found Semicolon ';' ian.txt: File - Line 4: Skipped to Semicolon ';' print (; ian.txt: File - Line 5: Expecting Identifier, Unsigned Integer, or Left Parenthesis; found Semicolon ';' ian.txt: File - Line 5: Skipped to Semicolon ';' print ); ian.txt: File - Line 6: Expecting Identifier, Unsigned Integer, or Left Parenthesis; found Right Parenthesis ')' ian.txt: File - Line 6: Skipping over Right Parenthesis ')' ian.txt: File - Line 6: Skipped to Semicolon ';' print a a a a a ; Line 7: Matched statement 1 starting 'print' ian.txt: File - Line 7: Expecting Semicolon, found Identifier 'a' ian.txt: File - Line 7: Skipping over Identifier 'a' ian.txt: File - Line 7: Skipping over Identifier 'a' ian.txt: File - Line 7: Skipping over Identifier 'a' ian.txt: File - Line 7: Skipping over Identifier 'a' ian.txt: File - Line 7: Skipped to Semicolon ';' print ,)(*&^%$#@!#%^*())_; ian.txt: File - Line 8: Expecting Identifier, Unsigned Integer, or Left Parenthesis; found Comma ',' ian.txt: File - Line 8: Skipping over Comma ',' ian.txt: File - Line 8: Skipping over Right Parenthesis ')' ian.txt: File - Line 8: Skipping over Left Parenthesis '(' ian.txt: File - Line 8: Skipping over Asterisk '*' ian.txt: File - Line 8: Skipping over Junk '&^%$#@!#%^' ian.txt: File - Line 8: Skipping over Asterisk '*' ian.txt: File - Line 8: Skipping over Left Parenthesis '(' ian.txt: File - Line 8: Skipping over Right Parenthesis ')' ian.txt: File - Line 8: Skipping over Right Parenthesis ')' ian.txt: File - Line 8: Skipping over Identifier '_' ian.txt: File - Line 8: Skipped to Semicolon ';' print print print ; ian.txt: File - Line 9: Expecting Identifier, Unsigned Integer, or Left Parenthesis; found Print Keyword 'print' ian.txt: File - Line 9: Skipping over Print Keyword 'print' ian.txt: File - Line 9: Skipping over Print Keyword 'print' ian.txt: File - Line 9: Skipped to Semicolon ';'