Merge branch 'parser' into dev
This commit is contained in:
commit
7a370b1dfa
4 changed files with 53 additions and 10 deletions
|
|
@ -10,18 +10,19 @@ struct ast_function
|
|||
};
|
||||
|
||||
/**
|
||||
* Checks if the given AST node is an ast_function
|
||||
* @brief: Checks if the given AST node is an ast_function
|
||||
*/
|
||||
bool ast_is_function(struct ast *node);
|
||||
|
||||
/**
|
||||
* Retrieves the function data from the given AST node.
|
||||
* Assumes that the node is of type AST_function.
|
||||
* @brief: Retrieves the function data from the given AST node.
|
||||
* Assumes that the node is of type AST_function.
|
||||
*/
|
||||
struct ast_function *ast_get_function(struct ast *node);
|
||||
|
||||
/**
|
||||
* Creates a new AST node representing an AST_function
|
||||
* @brief: Creates a new AST node representing an AST_function
|
||||
* @warning: name must be already allocated.
|
||||
*/
|
||||
struct ast *ast_create_function(char *name, struct ast *value);
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue