Syntax - programming language, Basic Computer Science

Syntax:

Syntax provides the structure and how to formulate the phrase or sentence w.r.t grammar of the language. It tells us about which composition is allowed from the character set of the language.   Each sentence must be a well formed sentence according to the grammar of the language. The grammar is expressed in a Number of rules that will be finite and these allow the formulation of any number of sentences. A language is defined in the form a quadruplet L(T,N,P,S) where T is set of terminals, N is a set of non terminals, P is set of productions or rules and S is the start symbol. For any language we must have an alphabet/character set, operators and rules. To form a grammar w.r.t a language rules need to be formed.  The basic structure of rule is LHS and RHS with some set of terminal and non terminal symbol. 

 

Syntax comprises grammar and vocabulary whereas syntactic analysis is known as parsing.  Semantics provides the meaning for the formulated /composed phrase or word or sentence. Semantic function can be incorporated inside the logic of a compiler or interpreter which evaluates ordering of statements for execution.

 

Posted Date: 10/23/2012 3:40:54 AM | Location : United States







Related Discussions:- Syntax - programming language, Assignment Help, Ask Question on Syntax - programming language, Get Answer, Expert's Help, Syntax - programming language Discussions

Write discussion on Syntax - programming language
Your posts are moderated
Related Questions
can you help me convert binary into decimals?

Objectives When you have completed all the work in this unit you should be able to: List the basic components of a personal computer system, 1. describe the use of comput

text graphics audio video

Question 1 Describe the following- Binary Number System b. Octal Number System Hexadecimal Number System   Question 2 Describe the Canonical Logical Forms-

let me know if you can do this assignment and how long it takes

explian set associte mapping

Ask questiCreate a flowchart that displays the student''s average score for three quizzes. + Assume that there are 3 sections each having 5 students + The only valid number to be

The unconditional jumps in a written program in assembler language are specified by the jmp instruction; a jump is to moves the flow of the execution of a program by sending the co

Development of Personnel Computer Operating System: The next important breakthrough in computer use occurred in 1982, with the introduction of the IBM personal computer. The I

The divisions which make a macro are: • Declaration of the macro Code of the macro Macro termination directive The assertion of the macro is done the following way: Name Macro [par