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