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

A utonomous Rational Agents: In many cases, it is not accurate to talk about a particular program or a particular  robot, as the combination of and software and hardware in so

Question 1 Write about Potential Risks to Information Systems Factors to be addressed for making information systems more secure Question 2 Write about the foll

URL services has two divisions. Basic webpages and custom webpages. Ricky Vega, Custom's manager wants to find out why Custom is not profitable. He has prepared the following repor

Questions 1) Polynomial Integrals Problem: Write an X86-series assembly language program that calculates and prints out (in a nice form) the indefinite integral of a simple polynom

what is ms dos?

access,excel and ms word/

Process Control Management:   A  process  is an executing program. It is considered the standard unit of work within a computer system. Every executing program is treated as a

classify computer system according to capacity. how they are different from computer according to the classification of technology.provide the comparative study also.

I WANT TO CONNECT A PC WIYH MY PC THROUGH REMOTE DESKTOP. WHAT I DO TELL ME PLEASE