From bd7796544d980639586b15c10fa68b016dea6d1e Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Mon, 19 Mar 2012 08:33:55 -0500 Subject: [PATCH] Update comments --- .../antlr/v4/runtime/atn/ATNSimulator.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/runtime/Java/src/org/antlr/v4/runtime/atn/ATNSimulator.java b/runtime/Java/src/org/antlr/v4/runtime/atn/ATNSimulator.java index e4515f07c..e1f534f89 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/atn/ATNSimulator.java +++ b/runtime/Java/src/org/antlr/v4/runtime/atn/ATNSimulator.java @@ -60,6 +60,10 @@ public abstract class ATNSimulator { int p = 0; atn.grammarType = toInt(data[p++]); atn.maxTokenType = toInt(data[p++]); + + // + // STATES + // int nstates = toInt(data[p++]); for (int i=1; i<=nstates; i++) { int stype = toInt(data[p++]); @@ -75,6 +79,10 @@ public abstract class ATNSimulator { } atn.addState(s); } + + // + // RULES + // int nrules = toInt(data[p++]); if ( atn.grammarType == ATN.LEXER ) { atn.ruleToTokenType = new int[nrules]; @@ -92,11 +100,19 @@ public abstract class ATNSimulator { atn.ruleToActionIndex[i] = actionIndex; } } + + // + // MODES + // int nmodes = toInt(data[p++]); for (int i=0; i