3 ms·
Regarding 1, there are languages that do not have a clear, unambiguous (to my reading, formalized) grammar yet possess compilers. Examples include classical FOR
by RodgerTheGreat 16y ago
Regarding 1, there are languages that do not have a clear, unambiguous (to my reading, formalized) grammar yet possess compilers. Examples include classical FORTRAN, Forth and (if I'm feeling particularly trollish today) C++.
- Locke1689 16y agoIn fact, the list of languages with formalized syntax and grammar is a very short one. I'm thinking of languages like Haskell and ML.
- j_baker 16y agoFair enough. But in that case, the entire argument is moot. After all neither Java nor Scala (as far as I know) are formalized. :-)
- deleted 16y ago[deleted]
- RodgerTheGreat 16y agoI can't speak for Scala, but Java most definitely has a formal grammar: http://java.sun.com/docs/books/jls/second_edition/html/syntax.doc.html http://java.sun.com/docs/books/jls/second_edition/html/synta...
- chalst 16y agoThe Scala language report does include an Extended-BNF syntax for the language, weighing in at 7 pages.