in Education by
differentiate between sytanx error and systematic error with example. Select the correct answer from above options

1 Answer

0 votes
by
There are two kinds of errors that Basis can find. 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. Basis is a single-pass parser, that is, it looks at its input only once. It also is a one-look ahead parser, meaning that at the most it is never looking more than one symbol ahead of the current context. By the time a syntax error has been detected, it is likely that a lot of the context information to the left of the error has already been lost. The diagnostic information that Basis gives attempts to be as useful as possible, but because of the very limited context information available, it is far from perfect. Semantic errors are often possible to diagnose more precisely. We have attempted to make the semantic error information supplied as useful as possible. Sometimes some of the information is only useful to someone familiar with the internals of Basis; but we hope that in most cases it will help you find your error. There is a third class, which can be the most expensive: Design errors. The code is correct and bug-free and does exactly what you’ve intended. But your intentions are wrong, e.g. based on wrong assumptions, wrong models, or you’ve used the wrong formulas, misunderstood the customer, or such.

Related questions

0 votes
    differentiate between system and application software with example Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    Differentiate between ordinary function and member functions in c++. Explain with an example Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Differentiate between the basic and the advanced on -screen keyboard ? Any 5 points Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Differentiate between break and System. exit(0). Answer within 5 minutes and ur answer will be marked THE BRAINLIEST ANSWER! Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    a. State the number of bytes occupied by char and int data types. b. Differentiate between = and == ... implicit type conversion. Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
    a. State the number of bytes occupied by char and int data types. b. Differentiate between = and == ... implicit type conversion. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    a. What is abstraction? How it is different from inheritance? b.Differentiate between compiler and interpreter. c. ... final keyword. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    5. Differentiate between natural and synthetic fibres. State any three advantages of synthetic fibres over natural fibres, Select the correct answer from above options...
asked Dec 4, 2021 in Education by JackTerrance
0 votes
    You can differentiate between the automatic and manual page breaks by looking at the page break line. * a. Colour ... Symbol d. Pattern Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    a. State the number of bytes occupied by char and int data types. b. Differentiate between = and == ... implicit type conversion. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    a. What is abstraction? How it is different from inheritance? b.Differentiate between compiler and interpreter. c. ... final keyword. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    Write the difference between maximum and minimum with example Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Differentiate High-level language, Assembly language, and Machine level language? Select the correct answer from above options...
asked Dec 11, 2021 in Education by JackTerrance
...