Last change
on this file since 1 was
1,
checked in by lnalod, 15 years ago
|
Initial import of YAO sources
|
File size:
978 bytes
|
Line | |
---|
1 | namespace antlr.debug |
---|
2 | { |
---|
3 | using System; |
---|
4 | |
---|
5 | public class SemanticPredicateEventArgs : GuessingEventArgs |
---|
6 | { |
---|
7 | public SemanticPredicateEventArgs() |
---|
8 | { |
---|
9 | } |
---|
10 | public SemanticPredicateEventArgs(int type) : base(type) |
---|
11 | { |
---|
12 | } |
---|
13 | |
---|
14 | public virtual int Condition |
---|
15 | { |
---|
16 | get { return this.condition_; } |
---|
17 | set { this.condition_ = value; } |
---|
18 | } |
---|
19 | |
---|
20 | public virtual bool Result |
---|
21 | { |
---|
22 | get { return this.result_; } |
---|
23 | set { this.result_ = value; } |
---|
24 | } |
---|
25 | |
---|
26 | public const int VALIDATING = 0; |
---|
27 | public const int PREDICTING = 1; |
---|
28 | |
---|
29 | private int condition_; |
---|
30 | private bool result_; |
---|
31 | |
---|
32 | |
---|
33 | /// <summary>This should NOT be called from anyone other than ParserEventSupport! |
---|
34 | /// </summary> |
---|
35 | internal void setValues(int type, int condition, bool result, int guessing) |
---|
36 | { |
---|
37 | base.setValues(type, guessing); |
---|
38 | this.Condition = condition; |
---|
39 | this.Result = result; |
---|
40 | } |
---|
41 | |
---|
42 | public override string ToString() |
---|
43 | { |
---|
44 | return "SemanticPredicateEvent [" + Condition + "," + Result + "," + Guessing + "]"; |
---|
45 | } |
---|
46 | } |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.