Public: Technology Reviews : Improving Linux Configuration Plan2
This page last changed on Apr 21, 2006 by scytacki.
It seems like building off of libconf and conf2xml seems like a good place to start. But I need to figure out how to work on the schemas for conf2xml. It currently uses something called templates, which seems similar to schemas.
Another issues is that conf2xml uses a single dtd for its output. If we want to use a standard schema language then the output of conf2xml needs to not be generic but actually use the xml element names as the config file elements. This might be doable with a xslt.
Another way to work on this might be with syntax trees. Because one thing that should exist are rich editors for the basic text files, perhaps using syntax trees will make that easy.
Supporting the use of xml as an intermediate is very good. That combined with the schemas make this a very portable and broadly useful solution.
Supporting multiple languages for writing the "parsers" is also very good.
If the api for the parser is defined correctly then the same parser can be used both for generating and then merging xml. As well as working with real time object synchronizing in eclipse.
So the break down is this:
The parser component:
Using mono this parser component could be written in lots of languages, and still be usuable by a rich text/xml editor. Example ways to implement parser component:
What I was calling the semantic model is implemented as a dynamic or compiled emf model from the schema.
There are two kinds of parsers:
This type of parser is specific to a particular schema. These are the type of parsers that GST has already created.
This is a more general parser that can work for multiple types of config files. Generally it shouldn't need to know about the schema it simply converts the file into the emf model that should exist. It might requie some parameters, so it knows keywords that are specific to a particular config file. These parameters would be stored as annotations to the schema.
|Document generated by Confluence on Jan 27, 2014 16:56|