42sh/src/parser/parsing_utils.h

26 lines
450 B
C
Raw Normal View History

/* @brief Parses a simple list of words (command and arguments)
* and returns the resulting ast
*/
struct ast *parse_simple_command(void);
/*
*/
struct ast *parse_if_rule(void);
/*
*/
struct ast *parse_shell_command(void);
/* @brief parses commands inside if/else clauses and returns the corresponding
* AST list
*/
struct ast* parse_compound_list(void);
/*
*/
struct ast* parse_and_or(void);
/*
*/
struct ast* parse_else_clause(void);