jay.yydebug

Class yyAnimPanel

public class yyAnimPanel extends Panel implements yyDebug

animates messages with a graphical interface. This is not java.io.Serializable.
Nested Class Summary
protected static classyyAnimPanel.Stack
animates state/value stack.
Field Summary
protected TextAreacomments
running explanations.
protected booleancommentsBreak
breakpoints, set in GUI.
protected yyAnimPanel.Stackstack
state/value stack.
protected booleanstackBreak
breakpoints, set in GUI.
protected TextFieldtoken
current token and value.
protected booleantokenBreak
breakpoints, set in GUI.
protected TextFieldvalue
current token and value.
Constructor Summary
yyAnimPanel(Font font)
Method Summary
voidaccept(Object value)
voiddiscard(int state, int token, String name, Object value)
voiderror(String message)
protected voidexplain(String what)
post a comment.
voidlex(int state, int token, String name, Object value)
voidpop(int state)
voidpush(int state, Object value)
voidreduce(int from, int to, int rule, String text, int len)
voidreject()
voidshift(int from, int to, int errorFlag)
voidshift(int from, int to)

Field Detail

comments

protected transient TextArea comments
running explanations.

commentsBreak

protected transient boolean commentsBreak
breakpoints, set in GUI.

stack

protected transient yyAnimPanel.Stack stack
state/value stack.

stackBreak

protected transient boolean stackBreak
breakpoints, set in GUI.

token

protected transient TextField token
current token and value.

tokenBreak

protected transient boolean tokenBreak
breakpoints, set in GUI.

value

protected transient TextField value
current token and value.

Constructor Detail

yyAnimPanel

public yyAnimPanel(Font font)

Method Detail

accept

public void accept(Object value)

discard

public void discard(int state, int token, String name, Object value)

error

public void error(String message)

explain

protected void explain(String what)
post a comment.

lex

public void lex(int state, int token, String name, Object value)

pop

public void pop(int state)

push

public void push(int state, Object value)

reduce

public void reduce(int from, int to, int rule, String text, int len)

reject

public void reject()

shift

public void shift(int from, int to, int errorFlag)

shift

public void shift(int from, int to)