caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] cmdliner difficulties
@ 2018-07-27 18:10 Kenneth Adam Miller
  2018-07-27 19:34 ` Gabriel Scherer
  2018-07-28 17:54 ` Андрей Бергман
  0 siblings, 2 replies; 7+ messages in thread
From: Kenneth Adam Miller @ 2018-07-27 18:10 UTC (permalink / raw)
  To: caml users

[-- Attachment #1: Type: text/plain, Size: 1414 bytes --]

Hello,


I have a task where I need to have command liner allow a sequence of
various different types compose a certain way without having to write a
small language for what belongs on the command line.

Basically, I am trying to color a graph with different operations on the
command line in such a way that different colors can be specified as the
target of results of set operations against names of sets. For example:

--color Red=(Feature1 MINUS Feature2)

There are a predefined set of colors and features, and some operations that
can be performed. However, because it's a grammar just like any language,
there might be arbitrarily deep expressions, and because the command line
won't have me constructing this in a straight forward way without writing a
dedicated type parser, which might not be so clean.

There are operations: difference, union, intersection, and cut. These can
recur, and there are predefined list of colors that can be the targets of
these results, which are calculated from sources that are features. In
addition, the specification of colorings can be multiple, as in --color ...
--color ...

Can anybody see where they would overcome some of these difficulties?

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

[-- Attachment #2: Type: text/html, Size: 1345 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-07-29  7:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-27 18:10 [Caml-list] cmdliner difficulties Kenneth Adam Miller
2018-07-27 19:34 ` Gabriel Scherer
2018-07-28 17:54 ` Андрей Бергман
2018-07-28 20:16   ` Kenneth Adam Miller
2018-07-29  0:26     ` Martin DeMello
2018-07-29  6:33       ` Gabriel Scherer
2018-07-29  6:59         ` Viet Le

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).