[cvs] bogofilter DEBUGGING,NONE,1.1
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2002-10-28 22:40:02
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv17489 Added Files: DEBUGGING Log Message: Add DEBUGGING file with information on how to debug the lexer, but it's not supposed to be restricted to the lexer. --- NEW FILE: DEBUGGING --- # How to debug the lexer The most effective way seems to be adding "debug" to the "%option" line, compile "lexertest" and run that against a small set of words. The "debug" option will make the generated lexer output what rules it accepts (with lexer.l line number) -- if lexertest does not print a get_token line, then the lexer has not returned the value TOKEN, but ignored the token. IMPORTANT: Remember to remove the debug %option before committing any changes! |