Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ANN: RASCL's A Simple Configuration Language
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-06-29 (01:35)
From: Matt Gushee <matt@g...>
Subject: ANN: RASCL's A Simple Configuration Language
Here's yet another configuration language--with an OCaml library to 
process it, of course.

RASCL came into being after I investigated the Config_file library and 
found it overly complex--which may say more about me than about the 
library. But at any rate, RASCL, the language, and Rascl, the OCaml 
library attempt to be about as simple as possible for both users and 
developers, at the expense of some generality.

Here are some of the main features:

* A RASCL file may be just a sequence of keys and values, or it may
   be arbitrarily nested.
* Values may be strings, integers, floats, booleans, or lists thereof.
* No OCaml-specific types supported (that's a feature, not a bug ;-)
* Strings need not be quoted unless they contain special characters
   or would otherwise be parsed as another type.
* Two interfaces for accessing configs:
   - Dict module
   - Object system, with a CamlP4 preprocessor to generate objects
     and sample config files

BTW, I have attempted to provide thorough documentation for the language 
RASCL--in case anyone wants to implement it for other programming 
languages. However, I don't have a lot of experience writing language 
specifications, and there are probably some errors and ambiguities. I'd 
appreciate feedback from any interested and knowledgeable parties.

RASCL and Rascl may be found at:  <>

Matt Gushee
: Bantam - lightweight file manager : :
: RASCL's A Simple Configuration Language : :