Text grammar format

The parser doesn't use the text grammar. It's easier for a person to write a text grammar than an XML grammar, and the text grammar can easily be converted to XML. The XML grammar is verbose, and hard to write by hand.

Function of text grammar

Chaperon uses its own parser to parse the text grammar and convert it to an XML file. Then a stylesheet converts this file to the XML grammar format used by Chaperon to parse your text files.

by Stephan Michels