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

asked in Compiler Design by Veteran (20.8k points)  
retagged by | 56 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.9k 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.8k points)   | 97 views
0 votes
0 answers
2
asked in Compiler Design by focus _GATE Veteran (20.8k points)   | 44 views
0 votes
0 answers
3
asked in Compiler Design by focus _GATE Veteran (20.8k points)   | 39 views


Top Users Sep 2017
  1. Habibkhan

    6970 Points

  2. Warrior

    2490 Points

  3. Arjun

    2368 Points

  4. rishu_darkshadow

    2136 Points

  5. A_i_$_h

    2004 Points

  6. nikunj

    1980 Points

  7. makhdoom ghaya

    1760 Points

  8. manu00x

    1750 Points

  9. Bikram

    1744 Points

  10. SiddharthMahapatra

    1718 Points


26,060 questions
33,668 answers
79,747 comments
31,079 users