Author: Stan Eisenstat
Subject: Re: [Cs323] cmd
Date: Monday, 16 Nov 2020, 15:23:44
> Message Posted By: Unknown > > Can we assume that the the cmd Tree that is given to process will always > follow the grammar defined in pset2? Or is there a possibility that theres > some sort of gremlin cases, like in pset4? As stated in the specification: * Hwk5/parsley.o, which implements the function parse() that tokenizes and parses commands into syntactically correct trees of CMD structures (interface in Hwk2/parsley.h). Since the argument to process() in mainBashLT.c was returned by parse(), process() may assume that it is represents a syntactically valid command. --Stan-PREV INDEX NEXT