The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
58 views

asked in Compiler Design by Veteran (21.5k points)
retagged by | 58 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 (12k 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 (21.5k points) | 115 views
0 votes
0 answers
2
asked in Compiler Design by focus _GATE Veteran (21.5k points) | 45 views
0 votes
0 answers
3
asked in Compiler Design by focus _GATE Veteran (21.5k points) | 41 views


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

28,832 questions
36,676 answers
90,580 comments
34,638 users