Go to the first, previous, next, last section, table of contents.


Pattern Debugging

When a set of patterns is not working the parser will either produce the wrong output, loop indefinitely, or crash. You can turn on debugging with the -d1 and -d2 flags to see what the DFA (Determinate Finite Automata, which isn't quite true) representation of your input patterns is. The -d1 option shows the various arrays defining the DFA, and the -d2 options shows a trace of the build of the main state arrays. It is beyond the scope of this document to describe the contents and structure of these arrays.


Go to the first, previous, next, last section, table of contents.