Tuesday, February 15, 2011

Applied Linguistics: Programming Semantics Overview

In theoretical computer science, formal semantics is the field concerned with the rigorous mathematical study of the meaning of programming languages and models of computation. The formal semantics of a language is given by a mathematical model that describes the possible computations described by the language.

Functions:

1.       Architectural, developmental and designing purposes
HTML - hypertext markup language, DHTML – dynamic hypertext markup language
Ex: <form method=post action="/cgi-bin/example.cgi">
Select an option:<br>
<input type="radio" name="option"> Option 1
<input type="radio" name="option" checked> Option 2
<input type="radio" name="option"> Option 3
<br>
<br>
Select an option:<br>
<input type="checkbox" name="selection"> Selection 1
<input type="checkbox" name="selection" checked> Selection 2
<input type="checkbox" name="selection"> Selection 3
<input type="Submit" value="Submit">
</form>

Result:

Select an option:
 Option 1
 Option 2
 Option 3

Select an option:
 Selection 1
 Selection 2
 Selection 3

2.       Procedural systems implementation language, command
Ex:   del c:\windows\temp\*.*
CSS: a:hover {font-size:20; color:#00FF00; text-decoration:underline;} 

3.       Locator, identification
Ex:
C:\user\dir
http://www.google.com.ph/