public override object VisitProgram([NotNull] PigeonParser.ProgramContext context) { functionScopes.Push(new FunctionScope(analyser.GlobalScope)); foreach (var stmt in context.stmt()) { Visit(stmt); } return(null); }
public override void EnterProgram([NotNull] PigeonParser.ProgramContext context) { scope = new Scope(GlobalScope); }