public CompilationUnitContext compilationUnit() { CompilationUnitContext _localctx = new CompilationUnitContext(_ctx, State); EnterRule(_localctx, 0, RULE_compilationUnit); try { EnterOuterAlt(_localctx, 1); { State = 16; likePatternString(); State = 17; Match(Eof); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.ReportError(this, re); _errHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }
public CompilationUnitContext compilationUnit() { CompilationUnitContext _localctx = new CompilationUnitContext(_ctx, State); EnterRule(_localctx, 0, RULE_compilationUnit); int _la; try { EnterOuterAlt(_localctx, 1); { State = 17; _errHandler.Sync(this); _la = _input.La(1); while (_la == OpenCode) { { { State = 14; dialog(); } } State = 19; _errHandler.Sync(this); _la = _input.La(1); } State = 20; Match(Eof); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.ReportError(this, re); _errHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }
public CompilationUnitContext compilationUnit() { CompilationUnitContext _localctx = new CompilationUnitContext(Context, State); EnterRule(_localctx, 0, RULE_compilationUnit); int _la; try { EnterOuterAlt(_localctx, 1); { State = 29; ErrorHandler.Sync(this); _la = TokenStream.LA(1); while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << ID) | (1L << NUMBER) | (1L << STRING))) != 0)) { { { State = 26; statement(); } } State = 31; ErrorHandler.Sync(this); _la = TokenStream.LA(1); } State = 32; Match(Eof); } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }
public CompilationUnitContext compilationUnit() { CompilationUnitContext _localctx = new CompilationUnitContext(_ctx, State); EnterRule(_localctx, 0, RULE_compilationUnit); int _la; try { EnterOuterAlt(_localctx, 1); { State = 21; _errHandler.Sync(this); _la = _input.La(1); while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << OpenCode) | (1L << LineComment) | (1L << EmptyLine))) != 0)) { { { State = 18; dialog(); } } State = 23; _errHandler.Sync(this); _la = _input.La(1); } State = 24; Match(Eof); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.ReportError(this, re); _errHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }
public override ASTNode VisitCompilationUnit([NotNull] CompilationUnitContext ctx) => ctx.translationUnit() is null ? new SourceNode(Enumerable.Empty <ASTNode>()) : this.Visit(ctx.translationUnit());