摘要 |
A method and system is provided for making it convenient to alter the syntax of the command-line interface, or re-write it from scratch, without resorting to the alteration of source code. This reduces the level of skill required to make these changes, and also reduces the time and effort required. In particular, the present application provides for a method and system for defining an interface syntax using the high-level generic markup language XML (eXtensible Markup Language). Since XML is a simple language it is easier and less time-consuming to edit an existing syntax or write a new one from scratch. Initially, a CLI specification is defined in XML. Subsequently, the XML CLI is translated into source code as part of a compilation process. When compiled, the translated source code can initialize data structures to be read by a parser (whose code is fixed) to thereby implement the syntax defined initially in XML.
|