CS118 Programming LanguagesLecture 4Reference
Contents
Definition of GrammarsGrammars are defined in terms of sets and sequences. Everyday Grammars
Lacking typesetting, we often settle for some formatted
ASCII characters to represent grammars. There is such
a grammar for X and another for M. Here is one for
propositions:
Sentential forms and languageSentential forms are intermediate expressions between a linguistic expression and the proof that is represented by the grammar. Canonical parseBy picking one order of rewritings out of many, we provide a structure to which we can attach meaning.
|