fortypoundhead.com

Syntax

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


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:54.80.10.56

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




Recent Forum Posts

Advanced search added
dwirch posted on September 23, 2017 at about 13:44 in Site News

Job Spammer: Gaurav Mehta - AgreeYa Solutions
dwirch posted on September 22, 2017 at about 10:35 in Spammers

Job Spammer: Prutha Siri - Javelin Systems
dwirch posted on September 10, 2017 at about 6:15 in Spammers

New security implemented
dwirch posted on September 7, 2017 at about 7:16 in Site News

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers