Declarative Command-line Interfaces
نویسنده
چکیده
This paper describes a new approach to generating command-line argument parsers in Perl [1]. The system presented takes a standard "usage" description and reverse-engineers a parser which satisfies that description. This ability to specify complex parsers declaratively also proves useful in other contexts, such as comma-separated-value processing, simple input parsing, and string interpolation.
منابع مشابه
CLOPS: A DSL for Command Line Options
Programmers often write custom parsers for the command line input of their programs. They do so, in part, because they believe that both their program’s parameterization and their option formats are simple. But as the program evolves, so does the parameterization and the available options. Gradually, option parsing, data structure complexity, and maintenance of related program documentation bec...
متن کاملGraceful Interaction Through the COUSIN Command Interface
Currently available interactive command interfaces often fail to provide adequate error correct ion or on-l ine help facilities, leading to the perception of an unfriendly interface and consequent frustration and reduced productivi ty on the part of the user. The C O U S I N project of Carnegie-Meiion University Is developing command interfaces which appear more friendly and support ive to thei...
متن کاملCommand-line interfaces can be efficiently brought to graphics: COLIMATE (the COmmand LIne MATE)
Scientific computing has traditionally been done on workstations, most of the time running on UNIX-like operating systems. These systems are often very robust, powerful and especially suited to heavy computation tasks; however, the usual user interface is based on a command line with all the information needed for the appropriate functioning of the algorithm. These command lines are seldom user...
متن کاملIntegrating a Command Shell into a Web Browser
The transition from command-line interfaces to graphical interfaces has resulted in programs that are easier to learn and use, but harder to automate and reuse. Another transition is now underway, to HTML interfaces hosted by a web browser. To help users automate HTML interfaces, we propose the browser-shell, a web browser that integrates a command interpreter into the browser’s Location box. T...
متن کاملA Framework to Specify Hypertext Interfaces for Ontology Engineering
Ontology construction is a complex process involving different types of users and multiple tasks. Moreover, it should take place in an integrated environment including the other elements of the organizational memory, such as databases and document bases. In this paper we show that various hypertext interfaces can be created easily using a declarative approach that was originally developed to en...
متن کامل