Author: Stan Eisenstat
Subject: Re: [Cs323] checking input
Date: Monday, 21 Sep 2020, 21:44:19
> Message Posted By: Unknown > > Would you suggest checking input (i.e. file after redirect) while parsing > the command line arguments, or when we are building a tree (assuming that > we do these in two separate steps). There are three stages: 1) break the command into tokens 2) check for syntax errors 3) build the parse tree which may be done sequentially (1 then 2 then 3), or partly in parallel (1+2 then 3 or 1 then 2+3) or entirely in parallel (1+2+3). Pick whichever is easiest for you to implement. --Stan-PREV INDEX NEXT