Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / Rook / Castle.Rook.Compiler / Parser / antlr / debug / InputBufferEventArgs.cs
blob5c601f16ad5af2b73019eea5aa7c4e2219245e75
1 namespace antlr.debug
3 using System;
5 public class InputBufferEventArgs : ANTLREventArgs
7 public InputBufferEventArgs()
11 public InputBufferEventArgs(int type, char c, int lookaheadAmount)
13 setValues(type, c, lookaheadAmount);
16 public virtual char Char
18 get { return this.c_; }
19 set { this.c_ = value; }
21 public virtual int LookaheadAmount
23 get { return this.lookaheadAmount_; }
24 set { this.lookaheadAmount_ = value; }
27 internal char c_;
28 internal int lookaheadAmount_; // amount of lookahead
30 public const int CONSUME = 0;
31 public const int LA = 1;
32 public const int MARK = 2;
33 public const int REWIND = 3;
36 /// <summary>This should NOT be called from anyone other than ParserEventSupport!
37 /// </summary>
38 internal void setValues(int type, char c, int la)
40 setValues(type);
41 this.Char = c;
42 this.LookaheadAmount = la;
45 public override string ToString()
47 return "CharBufferEvent [" + (Type == CONSUME?"CONSUME, ":"LA, ") + Char + "," + LookaheadAmount + "]";