prog method

ProgContext prog()

Implementation

ProgContext prog() {
  dynamic _localctx = ProgContext(context, state);
  enterRule(_localctx, 52, RULE_prog);
  int _la;
  try {
    enterOuterAlt(_localctx, 1);
    state = 239;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    while (_la == TOKEN_T__36) {
      state = 236;
      imp();
      state = 241;
      errorHandler.sync(this);
      _la = tokenStream.LA(1)!;
    }
    state = 245;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    while (_la == TOKEN_T__37) {
      state = 242;
      def();
      state = 247;
      errorHandler.sync(this);
      _la = tokenStream.LA(1)!;
    }
    state = 249;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    if (_la == TOKEN_T__35) {
      state = 248;
      actor();
    }

  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}