0
Excused me could someone pleased explain to me what Syntax errror means.
I keep getting this Syntax Error went ever I program. And I been seraching on the internet what it is but still... confused as to what it means. Could some one pleased explain to me what it means?^^
3 Respostas
+ 12
Allfeim Rebecca every language has some rules and that all written in respective languages Grammar. So this grammar can be context free grammar used in context free language , regular Grammar used in regular language, natural grammar used in regular language etc
Now in this grammar some rules are described and through which every keyword has special meaning according to the grammar an syntax analyzer is present in compiler which compare the syntax from rules of language grammar and if they didn't match then the compiler will raise an syntax error which state that your written syntax is not present in language grammar or not correctly written. So to execute code first you have to solve that syntax error by writing correct one and execute it.
0
Thank you. Will keep that in mind.
0
Syntax is the way you write your code in a language. or it's the rules that must be followed. eg.
1. every statement should end with a semicolon in C. you miss the ; you get a syntax error.
2. Every code block has opening and closing brace. you miss the closing brace you get a syntax error.