fix: added new ast type and moved parsing functions to a different header
This commit is contained in:
parent
7b773641a1
commit
37fcdf99be
4 changed files with 96 additions and 22 deletions
24
src/parser/parsing_utils.h
Normal file
24
src/parser/parsing_utils.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/* @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);
|
||||
|
||||
/*
|
||||
*/
|
||||
struct ast* parse_compound_list(void);
|
||||
|
||||
/*
|
||||
*/
|
||||
struct ast* parse_and_or(void);
|
||||
|
||||
/*
|
||||
*/
|
||||
struct ast* else_clause(void);
|
||||
Loading…
Add table
Add a link
Reference in a new issue