in reply to Re: command input processing
in thread command input processing
The would be a slight improvement on what I have currently =), but most of my variability is having 10 different formats for say the log command so I still end up with a horrid list, maybe I can't escape that.
I'm expanding the interpreter to be a lot more featured so that it can process conditional things like...
This makes the processing a bit more complicated so I guess I probably more curious as to how languages say perl, intepret language structure/grammar as I'm guessing they don't have some horrid long if loop
I suppose if I'm going to have say <25 permutations of commands only hardwiring the formats works, but making it reevaluate chunks in brackets as separate pieces starts to make life interesting and it would be nice to make it say the following...
if ( event1 > thing ) { data = var; goto func1 }
and
if ( event1 > thing ) { goto func1; data = var; }
by just teaching it the formats...
if () {} data = var goto func
rather than limiting the system to the permutations I'd hard coded. I guess this running a bit deeper that the original question i posted, appologies for not being more specific the first time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: command input processing
by ikegami (Patriarch) on Oct 22, 2004 at 02:31 UTC | |
by thekestrel (Friar) on Oct 22, 2004 at 14:12 UTC | |
by ikegami (Patriarch) on Oct 22, 2004 at 17:46 UTC | |
by thekestrel (Friar) on Oct 24, 2004 at 10:43 UTC | |
|
Re^3: command input processing
by Fletch (Bishop) on Oct 22, 2004 at 00:23 UTC | |
by thekestrel (Friar) on Oct 22, 2004 at 01:00 UTC |