Beispiel #1
0
 void EmitCommand(string command)
 {
     currCommand = new FablineCommand()
     {
         Name = command
     };
     Commands.Add(currCommand);
 }
Beispiel #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);
        }