srcs/parsing/syntax.c
int         valid_syntax(char *line)
{
    if (!line[0])
        return (1);
    if (!valid_pipes(line) || !valid_redirect(line) || !valid_semicolon(line))
        return (0);
    return (1);
}
/*
** checks line for syntax errors related to pipe, redirect and semicolon chars
**
** @arg: line read from terminal before parsing
** @ret: true = syntax ok false = syntax error
*/
checks line for syntax errors related to pipe, redirect and semicolon chars
checks line for syntax errors related to pipe redirect and semicolon chars
int         valid_syntax(char *line)
{
    if (!line[0])
        return (1);
    if (!valid_pipes(line) || !valid_redirect(line) || !valid_semicolon(line))
        return (0);
    return (1);
}
int valid_syntax ( char * line ) { if ( ! line [ 0 ] ) return ( 1 ) ; if ( ! valid_pipes ( line ) || ! valid_redirect ( line ) || ! valid_semicolon ( line ) ) return ( 0 ) ; return ( 1 ) ; }
checks line for syntax errors related to pipe, redirect and semicolon chars
checks line for syntax errors related to pipe redirect and semicolon chars