Articles and full code for BasicParse, a small parser/compiler implementation for a pseudo Bind configuration format.

Well, I finally found out what kind of configuration files I was parsing.  Turns out that I had a Bind like configuration file and I made some assumptions as to what the real underlying format was.  I was wrong about the underlying format, but the resulting parser still isn't useless in terms of showing people the process of creating a parser/compiler combo.  That means I now have a parser for a pseudo-Bind configuration language that I truly have no name for.  It supports complex or nested types, as well as simple types.  A complex type contains other complex types or simple types, while a simple type is basically a name/value pair.  The config format isn't strongly typed, but it is definitely a start.  The resulting compiled format of the config file is Xml, since that seems to be the default format that everyone wants their configuration in.  I could just as easily have written strongly typed C# structs that could be constructed and filled based on the configuration file.

BasicParse, a parser/compiler for a pseudo Bind configuration file format.
Code-Only: BasicLex and BasicParser with sample runner program for the psuedo Bind language.

Published Sunday, May 16, 2004 1:53 AM by Justin Rogers

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required)