Posted On 2008-01-14 by ArticleBot
Tags: Glossary 
Views: 1681

Each spoken language has a general set of rules for how words and sentences should be structured. These rules are collectively known as the language syntax. In computer programming languages, syntax serves the same purpose, defining how declarations, functions, commands, and other statements should be arranged.

Each computer programming language uses a different syntax. Many languages share similar syntax rules, while others have a very unique syntax design. For example, C and Java use a highly similar syntax, while Perl has many characteristics that are not seen in either the C or Java languages.

Regardless of the rules, a program's source code must have the correct syntax in order to compile correctly and be made into a program. In fact, it must have the exact right syntax, or the program will fail to compile and produce a "syntax error." A syntax error can be as simple as a missing parenthesis or a forgotten semicolon at the end of a statement. Even these small errors will keep the source code from compiling.

Fortunately, most software development programs include a debugger, which helps find the exact location of syntax errors within the source code. Imagine a program that has over ten thousand lines of code and a syntax error is caused by one missing semicolon. Finding a needle in a haystack would be preferred over manually locating the error. Needless to say, the debugger makes the debugging process much easier for the programmer.

About the Author

ArticleBot has posted a total of 46 articles.

You can find more information from ArticleBot by visiting .

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Recent Forum Posts

New security implemented
dwirch posted on July 23, 2017 at about 6:58 in Site News

Fold Code Manager into main KB?
VB6Boy posted on July 22, 2017 at about 14:42 in Site News

Fold Code Manager into main KB?
dwirch posted on July 22, 2017 at about 14:41 in Site News

Fold Code Manager into main KB?
dwirch posted on July 21, 2017 at about 22:46 in Site News

Fold Code Manager into main KB?
dwirch posted on July 20, 2017 at about 7:55 in Site News

Job Spammer: Sam Mallon
dwirch posted on July 18, 2017 at about 18:36 in Spammers