[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-dev: some suggestions
How about using an XML DTD file as the basis for the possible options to
go in the system-gschemrc file ?
That way the geda-config program just needs to parse the XML DTD file from
the current install to figure out what options are available and possible
and make a GUI on-the-fly when the tool is opened which corresponds to this.
Why not take it a step further and use this as the basis for generating the
actual system-gschemrc file at install time. That way the source for the
system-gschemrc file is in XML - a programmer adding new options will edit
the XML file, not the system-gschemrc and so everything will always be in sync.
Stephen.
> On Thu, 14 Dec 2006, Carlos Nieves Ónega wrote:
> > I like Peter's suggestion about formatting the comments in the gschemrc
> > file so a geda-config program would be able to present the user the
> > options in a nice and simple way. That way there is no need to change
> > geda-config every time the developers add something to the
> > system-gschemrc file (something usual, so it's worth to think about
> > this).
>
> Yes, that's one way to do it. Perhaps I mispoke, or was
> mis-interpreted, but my point is that the current format -- just a
> bunch of scheme sets with comments explaining what is going on -- is
> perfectly fine for an RC file. Making it hierarchical seems to me
> to add too much structure to something which is basically simple. The
> RC files are only a couple hundered lines of ASCII text anyway; grep
> and searching in your favorite text editor are the best ways to deal
> with them.
>
> My point was that using comments effectively is the best way to let
> users know what the structure of the file is, not building in some
> computer-parsable hierarchy.
>
> Better to add hierarchy to gschem and gnetlist, IMO!
>
> I'll drop out of this thread now since I've got to work.....
>
> Stuart
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev