Exforsys
+ Reply to Thread
Results 1 to 2 of 2

command parsing pattern

This is a discussion on command parsing pattern within the Software Patterns forums, part of the Testing category; Hello, I want to write a "TCL" like command parser as shown below. cmd1 cmd11 cmd1 cmd11 cmd111 cmd1 cmd11 ...

  1. #1
    WannaLeanOO Guest

    command parsing pattern

    Hello,

    I want to write a "TCL" like command parser as shown below.

    cmd1 cmd11
    cmd1 cmd11 cmd111
    cmd1 cmd11 cmd112 cmd1121
    cmd1 cmd11 cmd113

    cmd1 cmd12
    cmd1 cmd13 cmd111

    cmd2
    cmd3

    Is there any design pattern for this kind of problem?

    Thanks in Advance

    James.



  2. #2
    David Postill Guest

    Re: command parsing pattern

    In article <6hyPc.375$191.48@newsread1.dllstx09.us.to.verio.net>, on Mon, 02 Aug 2004 17:23:14
    -0400, WannaLeanOO <oo_newbie@invalidaddr.com> wrote:

    | Hello,
    |
    | I want to write a "TCL" like command parser as shown below.
    |
    | cmd1 cmd11
    | cmd1 cmd11 cmd111
    | cmd1 cmd11 cmd112 cmd1121
    | cmd1 cmd11 cmd113
    |
    | cmd1 cmd12
    | cmd1 cmd13 cmd111
    |
    | cmd2
    | cmd3
    |
    | Is there any design pattern for this kind of problem?

    Interpreter?

    <http://home.earthlink.net/~huston2/dp/interpreter.html>


    <davidp />

    --
    David Postill



Latest Article

Network Security Risk Assessment and Measurement

Read More...