Balanced Context-Free Grammars, Hedge Grammars and Pushdown Caterpillar Automata. Brüggemann-Klein, A. and Wood, D. In
abstract   bibtex   
The XML community generally takes trees and hedges as the model for XML document instances and element content. In contrast, Berstel and Boasson have discussed XML documents in the framework of extended context-free grammar, modeling XML documents as Dyck strings and schemas as balanced grammars. How can these two models be brought closer together? We examine the close relationship between Dyck strings and hedges, observing that trees and hedges are higher level abstractions than are Dyck primes and Dyck strings. We then argue that hedge grammars are effecively identical to balanced grammars and that balanced languages are identical to regular hedge languages, modulo encoding. From the close relationship between Dyck strings and hedges, we obtain a two-phase architecture for the parsing of balanced languages. We propose caterpillar automata with an additional pushdown stack as a new computational model for the second phase; that is, for the validation of XML documents.
@inproceedings{ kle04,
  crossref = {xmarkup2004},
  author = {Anne Brüggemann-Klein and Derick Wood},
  title = {Balanced Context-Free Grammars, Hedge Grammars and Pushdown Caterpillar Automata},
  uri = {http://www.mulberrytech.com/Extreme/Proceedings/html/2004/Bruggemann-Klein01/EML2004Bruggemann-Klein01-toc.html},
  abstract = {The XML community generally takes trees and hedges as the model for XML document instances and element content. In contrast, Berstel and Boasson have discussed XML documents in the framework of extended context-free grammar, modeling XML documents as Dyck strings and schemas as balanced grammars. How can these two models be brought closer together? We examine the close relationship between Dyck strings and hedges, observing that trees and hedges are higher level abstractions than are Dyck primes and Dyck strings. We then argue that hedge grammars are effecively identical to balanced grammars and that balanced languages are identical to regular hedge languages, modulo encoding. From the close relationship between Dyck strings and hedges, we obtain a two-phase architecture for the parsing of balanced languages. We propose caterpillar automata with an additional pushdown stack as a new computational model for the second phase; that is, for the validation of XML documents.}
}
Downloads: 0