Package jay.yydebug

jay/yydebug supports tracing and animation for a Java-based parser generated by jay.

See:
          Description

Interface Summary
yyDebug debugging interface for parsers generated by jay.
 

Class Summary
yyAnim delegates messages to a yyAnimPanel and optionally intercepts standard i/o.
yyAnimPanel animates messages with a graphical interface.
yyAnimPanel.Stack animates state/value stack.
yyDebugAdapter writes one-line messages to standard output or a stream.
yyInputStream used to reroute standard input from a TextArea.
yyJInputStream used to reroute standard input from a JTextArea.
yyPrintStream used to reroute standard and diagnostic output, auto-flushes.
 

Package jay.yydebug Description

jay/yydebug supports tracing and animation for a Java-based parser generated by jay.

Usage

An implementation of yyDebug is passed as an additional argument to yyparse() to trace a Java-based parser generated by jay with option -t set.

yyDebugAdapter produces one-line messages, by default to standard output. The messages are designed to be filtered by a program such as grep.

yyAnim provides an animation of the parsing process:

Terminal symbols are displayed in the token field as they are read by the parser, state/value stack activities are shown in the stack panel, and a running commentary appears in the comments area. The text area at the bottom simulates a terminal if the flags 1 for standard input and/or 2 for standard and diagnostic output are passed to yyAnim.

The parser is stopped if there is an activity in an area with an activated checkbutton. continue will continue the parsing activities.

Projects

Downloads

Version:
1.1.0, August 2004.
Author:
Axel T. Schreiner.