Man machine interface command syntax and parsing
Posted
by idimba
on Stack Overflow
See other posts from Stack Overflow
or by idimba
Published on 2010-04-16T21:44:06Z
Indexed on
2010/04/16
22:13 UTC
Read the original article
Hit count: 344
What I want is to add possibility to interact with application, and be able to extract information from application or event ask it to change some states.
For that purpose I though of building cli utility. The utility will connect to the application and send user commands (one line strings) to the application and wait for response from the application.
The command should contain: - command name (e.g. display-session-table/set-log-level etc.) - optionally command may have several arguments (e.g. log-level=10)
The question to choose syntax and to learn parse it fast and correctly.
I don't want to reinvent the whell, so maybe there's already an answer out there.
© Stack Overflow or respective owner