Check out my first novel, midnight's simulacra!

Programming languages

From dankwiki
Revision as of 10:30, 7 September 2009 by Dank (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Formal Semantics

  • Denotational semantics -- map grammatical elements directly to mathematical functions
  • Axiomatic semantics -- apply a system of axioms + deduction rules to the grammar
  • Operational semantics -- map language constructs to a simple (well-defined) abstract machine
  • Attribute grammars (Knuth, 1968) -- extensions of context-free grammars. An attribute grammar AG consists of:
    • a context-free grammar G
    • a finite set of attributes A
    • a finite set of semantic rules having form R : AG = (G, A, R ).


References

See Also