I've written a file parser.y which I ran throught bison to get parser.tab.c and then compiled that to get an executable ./parser which I can run and it works fine, but what I want to do is build an interpreter with a prompt such as '$ ' or '% ' or something like that.
Also I want it to have the ability to quit when I type the command quit.
A final functionality that I want to build into it is a history, so that you can hit the up arrow key to back in the history of commands.
Can someone provide info on how to do this? I searched all over google and was unable to find out how to do this. I have the O'Reilly book of lex&yacc and I don't think that explains it either.