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

asked in Compiler Design by Veteran (19.9k points)   | 50 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.3k 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 kunal chalotra Veteran (19.9k points)   | 60 views
0 votes
0 answers
2
asked in Compiler Design by kunal chalotra Veteran (19.9k points)   | 38 views
0 votes
0 answers
3
asked in Compiler Design by kunal chalotra Veteran (19.9k points)   | 30 views
Members at the site
Top Users Feb 2017
  1. Arjun

    4676 Points

  2. Bikram

    4004 Points

  3. Habibkhan

    3738 Points

  4. Aboveallplayer

    2966 Points

  5. sriv_shubham

    2278 Points

  6. Smriti012

    2212 Points

  7. Arnabi

    1814 Points

  8. Debashish Deka

    1788 Points

  9. sh!va

    1444 Points

  10. mcjoshi

    1444 Points

Monthly Topper: Rs. 500 gift card

20,788 questions
25,938 answers
59,532 comments
21,923 users