1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
-------------------------------------------------------------------------------
-- (C) Altran Praxis Limited
-------------------------------------------------------------------------------
--
-- The SPARK toolset is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3, or (at your option) any later
-- version. The SPARK toolset is distributed in the hope that it will be
-- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-- Public License for more details. You should have received a copy of the GNU
-- General Public License distributed with the SPARK toolset; see file
-- COPYING3. If not, go to http://www.gnu.org/licenses for a complete copy of
-- the license.
--
--=============================================================================
--# inherit Casing,
--# CommandLineData,
--# ConfigFile,
--# ContextManager,
--# ContextManager.Ops,
--# Declarations,
--# Dictionary,
--# ErrorHandler,
--# Error_Types,
--# E_Strings,
--# FileSystem,
--# File_Utils,
--# Graph,
--# IndexManager,
--# LexTokenLists,
--# LexTokenManager,
--# MetaFile,
--# RequiredUnits,
--# ScreenEcho,
--# Sem,
--# SLI,
--# SparkHTML,
--# SparkLex,
--# SPARK_IO,
--# SPParser,
--# Statistics,
--# StmtStack,
--# STree,
--# VCG,
--# XMLReport;
package MainLoop is
procedure Process_Files;
--# global in out CommandLineData.Content;
--# in out ConfigFile.State;
--# in out ContextManager.Ops.File_Heap;
--# in out ContextManager.Ops.Unit_Heap;
--# in out ContextManager.Ops.Unit_Stack;
--# in out Declarations.State;
--# in out ErrorHandler.Error_Context;
--# in out Graph.Table;
--# in out IndexManager.State;
--# in out LexTokenManager.State;
--# in out SLI.State;
--# in out SparkHTML.Generate_HTML;
--# in out SPARK_IO.File_Sys;
--# in out Statistics.TableUsage;
--# in out StmtStack.S;
--# in out STree.Table;
--# in out VCG.Invoked;
--# out Dictionary.Dict;
--# out Sem.State;
--# out SparkHTML.HTML_Work_Dir;
--# out SparkHTML.SPARK_Work_Dir;
--# out SparkLex.Curr_Line;
--# out XMLReport.State;
--# derives CommandLineData.Content,
--# ContextManager.Ops.File_Heap,
--# ContextManager.Ops.Unit_Heap,
--# ContextManager.Ops.Unit_Stack,
--# Declarations.State,
--# ErrorHandler.Error_Context,
--# Graph.Table,
--# IndexManager.State,
--# LexTokenManager.State,
--# SLI.State,
--# Statistics.TableUsage,
--# StmtStack.S,
--# STree.Table,
--# VCG.Invoked from *,
--# CommandLineData.Content,
--# ContextManager.Ops.File_Heap,
--# ContextManager.Ops.Unit_Heap,
--# ContextManager.Ops.Unit_Stack,
--# ErrorHandler.Error_Context,
--# IndexManager.State,
--# LexTokenManager.State,
--# SLI.State,
--# SparkHTML.Generate_HTML,
--# SPARK_IO.File_Sys,
--# STree.Table &
--# ConfigFile.State from *,
--# CommandLineData.Content,
--# ErrorHandler.Error_Context,
--# LexTokenManager.State,
--# SPARK_IO.File_Sys &
--# Dictionary.Dict,
--# SparkHTML.Generate_HTML from CommandLineData.Content,
--# ContextManager.Ops.File_Heap,
--# ContextManager.Ops.Unit_Heap,
--# ContextManager.Ops.Unit_Stack,
--# ErrorHandler.Error_Context,
--# IndexManager.State,
--# LexTokenManager.State,
--# SLI.State,
--# SparkHTML.Generate_HTML,
--# SPARK_IO.File_Sys,
--# Statistics.TableUsage,
--# STree.Table &
--# Sem.State,
--# SparkLex.Curr_Line,
--# XMLReport.State from CommandLineData.Content,
--# ContextManager.Ops.File_Heap,
--# ContextManager.Ops.Unit_Heap,
--# ContextManager.Ops.Unit_Stack,
--# ErrorHandler.Error_Context,
--# IndexManager.State,
--# LexTokenManager.State,
--# SLI.State,
--# SparkHTML.Generate_HTML,
--# SPARK_IO.File_Sys,
--# STree.Table &
--# SparkHTML.HTML_Work_Dir,
--# SparkHTML.SPARK_Work_Dir from CommandLineData.Content,
--# LexTokenManager.State,
--# SPARK_IO.File_Sys &
--# SPARK_IO.File_Sys from *,
--# CommandLineData.Content,
--# ContextManager.Ops.File_Heap,
--# ContextManager.Ops.Unit_Heap,
--# ContextManager.Ops.Unit_Stack,
--# ErrorHandler.Error_Context,
--# IndexManager.State,
--# LexTokenManager.State,
--# SLI.State,
--# SparkHTML.Generate_HTML,
--# Statistics.TableUsage,
--# STree.Table,
--# VCG.Invoked;
end MainLoop;
|