I've successfully made a parser using lex/yacc. However, the user is unable to delete a charactor they may have typed incorrectly. A friend mentioned the GNU readline library.

I've done lot's of searching on the google, but I can't find anything which shows me how to use readline with lex/yacc.

Does anybody have any examples or documentation I could refer to help me do this.

Thank you in advance.

Jonathan Wong