]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/wisi/wisi-parse.el
Merge commit '10258cb25d28c49198cc50a79cc3825d8ad5db22' from diff-hl
[gnu-emacs-elpa] / packages / wisi / wisi-parse.el
index 4497b39ae45b34678e28af05a66aaca5fa3e8cee..bb3b60b43785b5499aa5e8d2c54518f8d0c1d10a 100755 (executable)
 If a file needs more than this, it's probably an indication that
 the grammar is excessively redundant.")
 
-(defvar wisi-debug)
+(defvar wisi-debug 0
+  "wisi debug mode:
+0 : normal - ignore parse errors, for indenting new code
+1 : report parse errors (for running tests)
+2 : show parse states, position point at parse errors, debug-on-error works in parser
+3 : also show top 10 items of parser stack.")
 
 (defun wisi-parse (automaton lexer)
   "Parse input using the automaton specified in AUTOMATON.