The van Wijngaarden grammars: A syntax primer with decidable restrictions

Journal of Knowledge Structures and Systems 4 (2):1-39 (2023)
  Copy   BIBTEX

Abstract

Expressiveness and decidability are two core aspects of programming languages that should be thoroughly known by those who use them; this includes knowledge of their metalanguages a.k.a. formal grammars. The van Wijngaarden grammars (WGs) are capable of generating all the languages in the Chomsky hierarchy and beyond; this makes them a relevant tool in the design of (more) expressive programming languages. But this expressiveness comes at a very high cost: The syntax of WGs is extremely complex and the decision problem for the generated languages is generally unsolvable. With this in mind, I provide here a short primer of the syntax of WGs, which includes syntactic restrictions that guarantee decidability for the corresponding generated languages.

Author's Profile

Luis M. Augusto
Independent Scientist

Analytics

Added to PP
2023-08-14

Downloads
296 (#54,125)

6 months
173 (#16,712)

Historical graph of downloads since first upload
This graph includes both downloads from PhilArchive and clicks on external links on PhilPapers.
How can I increase my downloads?