| | |
Summary: 2/3/2011
© Kenneth C. Louden 2003 1
Language definitionLanguage definition
Syntax: the structure of a program. Usually
given a formal (i.e., mathematical) definition
using a context-free language. (Lexical
structure - the structure of the words orstructure - the structure of the words or
tokens - uses regular expressions.)
Semantics: the actual result of execution.
Usually described in English, but can be
specified mathematically.
1
Language translationLanguage translation
compiler runsource executable
inputs
outputs
Compiler: two-step process that
1. translates source code into
executable code(typically in
machine code) and then goes away.;
|