Exemple #1
0
 void EmitCommand(string command)
 {
     currCommand = new FablineCommand()
     {
         Name = command
     };
     Commands.Add(currCommand);
 }
Exemple #2
0
        }         //class FileParser

        void ParseFilename(string filename)
        {
            var            parser      = new FileParser(filename);
            FablineCommand fileCommand = new FablineCommand();

            fileCommand.Name = "<file>";
            fileCommand.Args.Add(parser.FullName);
            Commands.Add(fileCommand);
            Commands.AddRange(parser.Commands);
        }