Реализация алгоритма однопроходного макропроцессора, содержащего опережающие макроопределения
17

 

 

 

Листинг программы:

 

program.cs

using System;

using System.Collections.Generic;

using System.Windows.Forms;

using System.Linq;

using System.Text;

 

namespace SPO_KYRSOVIK

{

    class cl

    {

        int timInt;

 

        bool pS,start,end,macro,endm,err;

 

        string[] strError;

        string[] stroka;

        string[,] tko = new string[3,8];

        string[] timN,timD;

        string[] outText;

 

        string macroName;

        int i, j,k,n;

        string sTemp, slovo,ss;

 

        int[] timS, timE;

 

        void clProbel(string s)

        {

            int a, bi;

            bool b;

            b = false;

            ss = "";

            for (a = 0; a < s.Length; a++)

            {

                if ((s[a] == ' ') && (b == false)) { }

                else