prog method
Implementation
ProgContext prog() {
dynamic _localctx = ProgContext(context, state);
enterRule(_localctx, 52, RULE_prog);
int _la;
try {
enterOuterAlt(_localctx, 1);
state = 227;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
while (_la == TOKEN_T__37) {
state = 224;
imp();
state = 229;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
}
state = 233;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
while (_la == TOKEN_T__38) {
state = 230;
def();
state = 235;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
}
state = 237;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
if (_la == TOKEN_T__36) {
state = 236;
actor();
}
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}