PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [CS 323] Use function to parse cmd?
Date: Wednesday, 23 Sep 2020, 08:17:56


    > To parse the command line argument, do we need to use a series of functions:
    >
    > command(), which calls sequence()
    > sequence(), which calls sequence() and and_or()
    > and_or(), which calls pipeline() and and_or()
    > pipeline(), which calls stage() and pipeline()
    > stage(), ...
    > ...
    >
    > Each of these functions consumes a corresponding string, returns a status
    > of whether it is successful, use a CMD ** to pass back a new sub-tree it
    > created?

This is a generalization of the approach in the Addendum
on Parsing Expressions, but there are other approaches
that involve fewer functions.

--Stan-
PREV INDEX NEXT