diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-06-04 16:59:19 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-06-04 16:59:19 -0300 |
| commit | 5f70797f238466715196dd5d893c6ef77e2650fd (patch) | |
| tree | dcabbdda55925e73fda2400424f24d9d20a199aa /src/main/java/bjc/rgens/parser/RuleCase.java | |
| parent | 899efcc5442804e312b6d98aa248ac3601da06d3 (diff) | |
Debug info
Diffstat (limited to 'src/main/java/bjc/rgens/parser/RuleCase.java')
| -rwxr-xr-x | src/main/java/bjc/rgens/parser/RuleCase.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/bjc/rgens/parser/RuleCase.java b/src/main/java/bjc/rgens/parser/RuleCase.java index 21a7ed6..3581d54 100755 --- a/src/main/java/bjc/rgens/parser/RuleCase.java +++ b/src/main/java/bjc/rgens/parser/RuleCase.java @@ -14,6 +14,10 @@ import bjc.utils.funcdata.IList; * @author EVE */ public abstract class RuleCase { + public final int serial; + + private static int nextSerial = 0; + /** * The possible types of a case. * @@ -45,7 +49,11 @@ public abstract class RuleCase { protected IList<CaseElement> elementList; protected RuleCase(CaseType typ) { + serial = nextSerial; + type = typ; + + nextSerial += 1; } /** |
