parse.cpp
// Slist is a Statement followed by a Statement List
Slist is a Statement followed by a Statement List
Slist is a Statement followed by a Statement List
ParseTree *Slist(istream& in, int& line) {
    ParseTree *s = Stmt(in, line);
    if( s == 0 )
        return 0;
    if( Parser::GetNextToken(in, line) != SC ) {
        ParseError(line, "Missing semicolon");
        return 0;
    }
    return new StmtList(s, Slist(in,line));
}
ParseTree * Slist ( istream & in , int & line ) { ParseTree * s = Stmt ( in , line ) ; if ( s == 0 ) return 0 ; if ( Parser :: GetNextToken ( in , line ) != SC ) { ParseError ( line , " " ) ; return 0 ; } return new StmtList ( s , Slist ( in , line ) ) ; }
Slist is a Statement followed by a Statement List
Slist is a Statement followed by a Statement List