0 votes 0 votes Compiler Design compiler-design parsing lr-parser testbook-test-series + – focus _GATE asked Jan 11, 2017 retagged Jun 19, 2022 by Lakshman Bhaiya focus _GATE 381 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Syntax errors occur during the parsing of input code, and are caused by grammatically incorrect statements. Typical errors might be an illegal character in the input, a missing operator, two operators in a row, two statements on the same line with no intervening semicolon, unbalanced parentheses, a misplaced reserved word, etc. Semantic errors occur during the execution of the code, after it has been parsed as grammatically correct. These have to do not with how statements are constructed, but with what they mean. Such things as incorrect variable types or sizes, nonexistent variables, subscripts out of range, and the like, are semantic errors. https://wci.llnl.gov/codes/basis/manual/node53.html http://space.wccnet.edu/~pmillis/cps120/cps120_pgm_syntax.pdf saurabh rai answered Jan 11, 2017 saurabh rai comment Share Follow See all 3 Comments See all 3 3 Comments reply focus _GATE commented Jan 11, 2017 reply Follow Share so syntatic error should be answer ryt . 0 votes 0 votes saurabh rai commented Jan 11, 2017 reply Follow Share yes. 0 votes 0 votes Sushant Gokhale commented Jan 31, 2017 reply Follow Share What are translation schemes? They are actions that can be used to detect semantics errors if any while parsing takes place. SO, I think both A and B should hold. 0 votes 0 votes Please log in or register to add a comment.