Chaperon is a project that converts structured text to XML. It includes a strong LALR parser to parse the text and a tree builder, which creates an XML document. Chaperon is a lexical scanner, a parser generator, a parser, a tree builder and an XML generator all in one package. Chaperon can parse structured text using a grammar and then generate an XML representation of the parsed text, so it is easy to use Chaperon as a converter for text files.