Subj : Using javascript as an interactive command language To : netscape.public.mozilla.jseng From : mecklen@realmsys.com (Robert Mecklenburg) Date : Thu Mar 25 2004 02:07 pm I'm implementing an interactive (but scriptable) command language. Expressions in this language look like: list all users pushd key set debug on I would like to use javascript as the basic interpreter for this language, but I'm having trouble knitting my syntax together with js syntax. I can imagine a bash-like behavior where things that don't immediately look like javascript are handled by my own parser, while the rest is handled by js. Of course, I'd like to be able to use variables from js in my own commands. Like: list -l $users where $users is the contents of a js variable. Any suggestions on how to do this? Thanks, Robert .