feat: Merge branch 'parser' into dev
This commit is contained in:
commit
b1bcd5e729
1 changed files with 16 additions and 0 deletions
|
|
@ -1,4 +1,20 @@
|
||||||
#ifndef PARSER_H
|
#ifndef PARSER_H
|
||||||
#define PARSER_H
|
#define PARSER_H
|
||||||
|
|
||||||
|
#include "utils/ast/ast.h"
|
||||||
|
|
||||||
|
/* @brief Builds the AST representation of the next command to execute.
|
||||||
|
*
|
||||||
|
* @return Returns the AST representation of the next command to execute.
|
||||||
|
* If there is no command left to execute, retuns an AST_END node.
|
||||||
|
*/
|
||||||
|
struct ast* get_ast();
|
||||||
|
|
||||||
|
/* @brief Builds the AST representation of the given command string.
|
||||||
|
*
|
||||||
|
* @return Returns the AST representation of the given command string.
|
||||||
|
* Returns an AST_END node if the given command is empty.
|
||||||
|
*/
|
||||||
|
struct ast* get_ast_str(char* command);
|
||||||
|
|
||||||
#endif /* ! PARSER_H */
|
#endif /* ! PARSER_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue