I've made the following patch to semantic-lex:
*** semantic-lex.el.~1.10.~ Thu Sep 5 17:42:46 2002
--- semantic-lex.el Sun Sep 15 07:55:18 2002
*** 482,487 ****
--- 482,489 ----
(while (and (< (point) end)
(or (not length) (<= (length token-stream) length)))
+ (when (eq end-point start)
+ (error "Lexical Analyzer: potential hang detected"))
;; Return to where we started.
;; Do not wrap in protective stuff so that if there is an error
in the hopes it can find the class of bug recently uncovered with
David's semantic grammar lexer. Is there any reason we want start
and end to be the same after a single analysis?
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org