Balanced Grammars and Their Languages

Balanced grammars are a generalization of parenthesis grammars in two directions. First, several kind of parentheses are allowed. Next, the set of right-hand sides of productions may be an infinite regular language. XML-grammars are a special kind of balanced grammars. This paper studies balanced grammars and their languages. It is shown that there exists a unique minimal balanced grammar equivalent to a given one. Next, balanced languages are characterized through a property of their syntactic congruence. Finally, we show how this characterization is related to previous work of McNaughton and Knuth on parenthesis languages.

[1]  Robert McNaughton,et al.  Parenthesis Grammars , 1967, JACM.

[2]  J. Conway Regular algebra and finite machines , 1971 .

[3]  John E. Hopcroft,et al.  Simple Deterministic Languages , 1966, SWAT.

[4]  Seymour Ginsburg,et al.  Bracketed Context-Free Languages , 1967, J. Comput. Syst. Sci..

[5]  Noam Chomsky,et al.  The Algebraic Theory of Context-Free Languages* , 1963 .

[6]  Donald E. Knuth,et al.  A Characterization of Parenthesis Languages , 1967, Inf. Control..

[7]  Jean Berstel,et al.  XML Grammars , 2000, MFCS.

[8]  C. M. Sperberg-McQueen,et al.  Extensible Markup Language (XML) , 1997, World Wide Web J..

[9]  Michael A. Arbib,et al.  An Introduction to Formal Language Theory , 1988, Texts and Monographs in Computer Science.