Write a command-line tool that reads a dependency specification from stdin and outputs a valid topological…
Write a command-line tool that reads a dependency specification from stdin and outputs a valid topological…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - Each line is either a dependency declaration or a comment. - A dependency…
The task
Input format (stdin): - Each line is either a dependency declaration or a comment. - A dependency declaration has the form: TARGET: DEP1 DEP2 ... DEPN - TARGET is a non-empty string of printable ASCII characters (no colons, no leading/trailing whitespace). - DEP1..DEPN are zero or more non-empty strings separated by…
Part of ai-and/termgrade-environments.