3 ms·
I find it, above all, baffling that since k&r, we still write language specs in prose, rather than in a formal language...
by amelius 12y ago
I find it, above all, baffling that since k&r, we still write language specs in prose, rather than in a formal language...
- 6581 12y agohttps://en.wikipedia.org/wiki/Backus%E2%80%93Naur_Form https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_Form
- marktangotango 12y agoBNF can specify the syntax, but not the semantics ie the meaning. There are several methods of specifying the semantics[1], it's known to be notoriously difficult to completely specify the semantics of a language, with some languages more suited to a formal definition than others. I believe Haskell is the most commonly used language today with the best formal definition. [1] http://en.wikipedia.org/wiki/Semantics_(computer_science)#Approaches http://en.wikipedia.org/wiki/Semantics_(computer_science)#Ap...
- arielb1 12y agoCompCert (compcert.inria.fr) kind-of gives C formal semantics.