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
how to use computer and how we can manage it

ALU’s tasks and their suitable subcomponents: Addition and subtraction these two tasks are carried out by constructs of logic gates, such as half adders and full adders. While they

Problem 1 Research designs have a critical and directive role to play in the research process. Explain the meaning of research design. Describe the various types of research de

2. What benefits can a company gain by managing its own information infrastructure and services?

SOFTWARE BASICS: Software is a generic term covering the concepts, procedures and instructions which cause the computer systems to accomplish the required job, Generally, soft

Our instructor gave us a project in making a mechanical game or simple device using assembly language, can anyone give me a an example of a project description for our proposal?

Hill Climbing - artificial intelligence: As we've seen, in some particular problems, searching the search path from primly to goal state is the point of the exercise. In anothe

hello do have c programming experts

Question 1 List two I/O virtualization methods. Based on different features compare these two methods Question 2 Discuss three areas considered by organizations to secure the

what is computer topology .