dsl/library for text interaction?

Discussion in 'Ruby' started by James Moore, Dec 17, 2006.

  1. James Moore

    James Moore Guest

    I've been doing a fair amount of work with Asterisk lately. It's got a
    command-line interface that looks quite a bit like SMTP (and like lots of
    other text-based send-a-line-and-get-a-response protocols).

    Seems like there should be a generic library to build interfaces for these
    sorts of things - is there? Some sort of DSL that helps you say things
    like:

    - the first thing on the line is the command "FOOBAR"
    - it takes two required arguments, and one optional
    - encode the required arguments using (base64/http/whatever)
    - the response is one line starting with an integer result code
    - when you get a response matching code X, execute a given block
    - etc

    - James Moore
     
    James Moore, Dec 17, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Si5QYXJzb25z?=

    I can not get DSL in my area

    =?Utf-8?B?Si5QYXJzb25z?=, Feb 28, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    5,080
    =?Utf-8?B?Si5QYXJzb25z?=
    Mar 2, 2006
  2. Ajit
    Replies:
    2
    Views:
    526
    Esmond Pitt
    Dec 31, 2003
  3. Harald Korneliussen

    What was that web interaction library called again?

    Harald Korneliussen, Jun 22, 2007, in forum: Python
    Replies:
    6
    Views:
    263
    John J. Lee
    Jun 25, 2007
  4. Replies:
    4
    Views:
    815
    Mike Treseler
    Sep 11, 2007
  5. Benjamin Blundell
    Replies:
    4
    Views:
    352
    Mirage
    Dec 31, 2008
Loading...

Share This Page