Related articles |
---|
"Near Miss" error handling? gwyn@thislove.dyndns.org (2001-03-27) |
Re: "Near Miss" error handling? jbeniston@siroyan.com (Jon Beniston) (2001-03-28) |
Re: "Near Miss" error handling? eeide@cs.utah.edu (Eric Eide) (2001-03-31) |
Re: "Near Miss" error handling? eballen1@qwest.net (Bruce Ediger) (2001-03-31) |
Re: "Near Miss" error handling? guerby@acm.org (Laurent Guerby) (2001-03-31) |
Re: "Near Miss" error handling? samiam@cisco.com (Scott Moore) (2001-03-31) |
Re: "Near Miss" error handling? Martin.Ward@durham.ac.uk (2001-03-31) |
Re: "Near Miss" error handling? ian.trudel@tr.cgocable.ca (Ian Trudel) (2001-03-31) |
Re: "Near Miss" error handling? joachim_d@gmx.de (Joachim Durchholz) (2001-04-04) |
Re: "Near Miss" error handling? joachim_d@gmx.de (Joachim Durchholz) (2001-04-04) |
Re: "Near Miss" error handling? uabbwat@uab.ericsson.se (Barry Watson) (2001-04-04) |
Re: "Near Miss" error handling? ralph@inputplus.demon.co.uk (2001-04-14) |
Re: "Near Miss" error handling? henry@spsystems.net (2001-04-15) |
[3 later articles] |
From: | Martin.Ward@durham.ac.uk (Martin Ward) |
Newsgroups: | comp.compilers |
Date: | 31 Mar 2001 02:46:07 -0500 |
Organization: | Compilers Central |
Keywords: | tools, editor |
Posted-Date: | 31 Mar 2001 02:46:07 EST |
Gwyn Judd wrote:
> I'm writing (modifying actually) a compiler for my final undergraduate
> project and I've come across a feature I've never seen in a production
> compiler. basically when the compiler comes across an identifier it
> hasn't seen before, it will go through the list of known identifiers
> and try to determine which is the closest so it can then make a
> hopefully helpful suggestion on how to correct the error. ...
agrep-2.04 will search a list of words for the nearest match to a given word.
I use it all the time to check my spelling :-)
agrep -B -w word wordlist
You can download it from lots of places, eg:
ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/agrep-2.04.tar.Z
ftp://sunsite.unc.edu/pub/Linux/utils/text/agrep-2.04.tar.Z
Martin
Martin.Ward@durham.ac.uk http://www.dur.ac.uk/martin.ward/ Erdos number: 4
Return to the
comp.compilers page.
Search the
comp.compilers archives again.