Esempio n. 1
0
        private void Add_Function(string name, int line, ScriptFile filein, Var_State state)
        {
            ScriptLabel scr_lab = new ScriptLabel();

            scr_lab.Name  = name.ToUpperInvariant();
            scr_lab.Line  = line;
            scr_lab.File  = filein.Name;
            scr_lab.State = state;

            filein._functionlist.Add(scr_lab.Name, scr_lab);
        }
Esempio n. 2
0
        private void Add_Function(string name, int line, ScriptFile filein, Var_State state)
        {
            ScriptLabel scr_lab = new ScriptLabel();

            scr_lab.Name = name.ToUpperInvariant();
            scr_lab.Line = line;
            scr_lab.File = filein.Name;
            scr_lab.State = state;

            filein._functionlist.Add(scr_lab.Name, scr_lab);
        }
Esempio n. 3
0
        private void Add_Sub(string name, int line, string file)
        {
            ScriptLabel scr_lab = new ScriptLabel();

            scr_lab.Name = name.ToUpperInvariant();
            scr_lab.Line = line;
            scr_lab.File = file;

            if (!((ScriptFile)Files[file])._sublist.ContainsKey(scr_lab.Name))
            {
                ((ScriptFile)Files[file])._sublist.Add(scr_lab.Name, scr_lab);
            }
            //Sublist.Add(scr_lab);
        }
Esempio n. 4
0
        private void Add_ReturnSub(string name, int line, string file)
        {
            ScriptLabel scr_lab = new ScriptLabel();

            scr_lab.Name = name.ToUpperInvariant();
            scr_lab.Line = line;
            scr_lab.File = file;

            Subcalls.Push(scr_lab);
        }
Esempio n. 5
0
        private static void Add_Function(string name, int line, string file, Var_State state)
        {
            ScriptLabel scr_lab = new ScriptLabel();

            scr_lab.Name = name.ToUpperInvariant();
            scr_lab.Line = line;
            scr_lab.File = file;
            scr_lab.State = state;

            if (!((ScriptFile)Files[file])._functionlist.ContainsKey(scr_lab.Name))
            {
                ((ScriptFile)Files[file])._functionlist.Add(scr_lab.Name, scr_lab);
            }
            //Functionlist.Add(scr_lab);
        }