Beispiel #1
0
        public void ExecuteFile(string fileName)
        {
            Parser p = Parser.FromFile(engineContext.SystemState, context.CopyWithNewSourceFile(fileName));
            Stmt   s = p.ParseFileInput();

            Frame     topFrame = new Frame(engineContext.Module);
            FrameCode code     = OutputGenerator.GenerateSnippet(p.CompilerContext, s, false);

            code.Run(topFrame);
        }