When using a digital computer we actually create programs and run them.
Computer :- A machine whose Processing stage in its IPO cycle is nothing but computation.
We call a program as a software normally if it interacts with the user in direct or indirect way.
You can burn a microprocessor with a program which only consist of an infinite loop and never give or take any output/input respectively, but that will not be a software.
Programs are sequence of bits to represent a sequence task to be done by Computer. Program are written in some language.
String :- A sequence of symbols belongs to an alphabet corresponding to a language.
Language :- A set of strings generated from the alphabet of that language.
Every language has a grammar.
Grammar :- The set of rules to generate exactly those strings which belongs to that language.
In the computation syntax represent the grammar. A string is syntactically correct means it is generated following the grammar of that language.
However semantics tells the meaning of the language. It is usually very important to map a string of an language to equivalent string in another language ( Actually 'meaning' has an implicit hint that we want to translate or map the string in an language to some sequence image/symbols residing in out brain i.e. the implicit language of brain ).
For example :- When a person tells to another person that "I Love You" at that moment the feeling / image of love generates in the person who received that voice. :) But if one say "I want to dance with you." the sequence of dancing moment will rise in your mind.
Practically in the sense of computer science the semantics does only above mentioned work. But for linguistics the semantics also decide validity of a sentence. (But in the computing languages the invalid sentences could not pass the grammar test.)
Programming languages are a subset of computational languages as one programming language is valid under a certain environment. Suppose there is no concept of memory allocation in some computing device like PLD , there some code in C language has no meaning. But mostly all well known programming language can work on the common digital computers so we can just avoid this point as we are by default assuming to talking about normal digital computers PC or higher level.
In the context of normal computers the programming language is the set of string in which user can express his wish of some task to be done by that computer and that could be translated to the equivalent Machine code to execute the desired task.
Computer :- A machine whose Processing stage in its IPO cycle is nothing but computation.
We call a program as a software normally if it interacts with the user in direct or indirect way.
You can burn a microprocessor with a program which only consist of an infinite loop and never give or take any output/input respectively, but that will not be a software.
Programs are sequence of bits to represent a sequence task to be done by Computer. Program are written in some language.
String :- A sequence of symbols belongs to an alphabet corresponding to a language.
Language :- A set of strings generated from the alphabet of that language.
Every language has a grammar.
Grammar :- The set of rules to generate exactly those strings which belongs to that language.
In the computation syntax represent the grammar. A string is syntactically correct means it is generated following the grammar of that language.
However semantics tells the meaning of the language. It is usually very important to map a string of an language to equivalent string in another language ( Actually 'meaning' has an implicit hint that we want to translate or map the string in an language to some sequence image/symbols residing in out brain i.e. the implicit language of brain ).
For example :- When a person tells to another person that "I Love You" at that moment the feeling / image of love generates in the person who received that voice. :) But if one say "I want to dance with you." the sequence of dancing moment will rise in your mind.
Practically in the sense of computer science the semantics does only above mentioned work. But for linguistics the semantics also decide validity of a sentence. (But in the computing languages the invalid sentences could not pass the grammar test.)
Programming languages are a subset of computational languages as one programming language is valid under a certain environment. Suppose there is no concept of memory allocation in some computing device like PLD , there some code in C language has no meaning. But mostly all well known programming language can work on the common digital computers so we can just avoid this point as we are by default assuming to talking about normal digital computers PC or higher level.
In the context of normal computers the programming language is the set of string in which user can express his wish of some task to be done by that computer and that could be translated to the equivalent Machine code to execute the desired task.
No comments:
Post a Comment