Related articles |
---|
simple command line environment jeff_hamann@hamandonald.com (Jeff D. Hamann) (2001-12-11) |
Re: simple command line environment ee4299@ee.teiath.gr (Andreou Al.) (2001-12-15) |
From: | "Andreou Al." <ee4299@ee.teiath.gr> |
Newsgroups: | comp.compilers |
Date: | 15 Dec 2001 00:37:31 -0500 |
Organization: | National Technical University of Athens, Greece |
References: | 01-12-055 |
Keywords: | parse |
Posted-Date: | 15 Dec 2001 00:37:30 EST |
> while( token != "quit" )
> {
> process command
> get next command;
> }
>
> i know it's pretty rough pseudo-c code, and I can generate a simple parser
> for single lines, but I would like to be able to use, from a command line
> interface,
This is probably a little bit different from what you are asking, but
I maybe script0r.c can be of some help. Note that it is a disgrace to
C programmers, and I am embarassed for having written it. It is a
rough cut for a problem that I would now solve in a much better way.
Oh, I couldn't ftp to my account so I cut-n-paste it from Notepad to joe
(using right-click in Putty). This is why the indentation is screwed up; I
don't have indent installed on that machine.
To get the code (and run it through indent -kr):
http://nemesis.ee.teiath.gr/~ee4299/misc/ .
Have fun.
Alexandros.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.