« API Code Gen, Teaching Break | Main | 2.0 API Code Posted »
Friday
Apr132012

Cmd line interpreter

To ease testing, and make the overall interface easier to play with, I am building an interactive command interpreter in Python 3.2.  The user will be able to type in a simple command (or load a file) using a vocabulary like: <metamodel class> [<op> [<prop>]],... <scope> with some helpful scoping commands so that you don't have to keep re-entering the same domain name.  An example session might look like this:

* scope domain 'Banking'

* id add attr 'Branch name' class

(the second of which will invoke the UI_add_attr_to_id(...) db function)

And, of course, a simple help system.

Should have it working by the end of the weekend if all goes well.

References (3)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Football is seriously one of the most significant sports in America. It has a key following.
  • Response
    NFL is seriously a single of the biggest sports in America. It has a important following.
  • Response
    miUML - News - Cmd line interpreter

Reader Comments (1)

Well, that turned out to be a bit more involved than I had planned! Nonetheless, I will be releasing something before I head off to Stockholm mid-May. I've got the command interpreter up with a help system, commands and queries being processed. It's already allowing me to test and find issues here and there in the DB API. I will probably release the python code on Github with the pgplsql to follow, with links here of course.

May 8, 2012 | Registered CommenterLeon Starr
Member Account Required
Welcome to miUML. We want your input, but to ward off evil spam, we request that you create a user account first.