GATE CSE
First time here? Checkout the FAQ!
x
0 votes
54 views

asked in Compiler Design by Veteran (20.3k points)   | 54 views

1 Answer

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
answered by Veteran (10.6k points)  
so syntatic error should be answer ryt .
yes.

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.

Related questions

0 votes
1 answer
1
asked in Compiler Design by focus _GATE Veteran (20.3k points)   | 71 views
0 votes
0 answers
2
asked in Compiler Design by focus _GATE Veteran (20.3k points)   | 41 views
0 votes
0 answers
3
asked in Compiler Design by focus _GATE Veteran (20.3k points)   | 35 views


Top Users May 2017
  1. akash.dinkar12

    3578 Points

  2. pawan kumarln

    2314 Points

  3. Bikram

    1950 Points

  4. Arjun

    1848 Points

  5. sh!va

    1682 Points

  6. Debashish Deka

    1296 Points

  7. Devshree Dubey

    1282 Points

  8. Arunav Khare

    1122 Points

  9. Angkit

    1072 Points

  10. LeenSharma

    1028 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 May 29 - Jun 04
  1. Arunav Khare

    246 Points

  2. Arjun

    198 Points

  3. pawan kumarln

    108 Points

  4. Niharika 1

    90 Points

  5. pC

    90 Points


22,909 questions
29,242 answers
65,402 comments
27,744 users