feat: elif support, fixed a lot of inconcistencies with the grammar and updated code according to the behaviour described in the header. Also fixed some typos and doc errors
This commit is contained in:
parent
346ad17e26
commit
f887c90ec5
2 changed files with 103 additions and 49 deletions
|
|
@ -20,11 +20,6 @@
|
|||
}
|
||||
|
||||
/* @brief Acts as the entry point of the parser, calls parse_list
|
||||
*/
|
||||
struct ast* parse_input(void);
|
||||
|
||||
/* @brief: parses a list of [and_or] rules separated by semicolons and that
|
||||
* ends by a newline
|
||||
*
|
||||
* @code input = list '\n'
|
||||
* | list EOF
|
||||
|
|
@ -32,6 +27,13 @@ struct ast* parse_input(void);
|
|||
* | EOF
|
||||
* ;
|
||||
*/
|
||||
struct ast* parse_input(void);
|
||||
|
||||
/* @brief: parses a list of [and_or] rules separated by semicolons and that
|
||||
* ends by a newline
|
||||
*
|
||||
* @code list = and_or { ';' and_or } [ ';' ] ;
|
||||
*/
|
||||
struct ast *parse_list(void);
|
||||
|
||||
/* @brief Only parses a pipeline rule for the moment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue