split heredoc handling in the scanner
This commit is contained in:
parent
8be7417a61
commit
7e1e51e90b
30 changed files with 663 additions and 416 deletions
30
output/src/vec/ast/ast_functions4.c
Normal file
30
output/src/vec/ast/ast_functions4.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* vec_ast.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/30 17:59:28 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/30 17:59:28 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "me/mem/mem.h"
|
||||
#include "me/types.h"
|
||||
#include "me/vec/vec_ast.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
t_ast_node *vec_ast_get(t_vec_ast *vec, t_usize i)
|
||||
{
|
||||
if (vec->len >= i)
|
||||
return (NULL);
|
||||
return (&vec->buffer[i]);
|
||||
}
|
||||
|
||||
t_ast_node *vec_ast_last(t_vec_ast *vec)
|
||||
{
|
||||
if (vec->len == 0)
|
||||
return (NULL);
|
||||
return (&vec->buffer[vec->len - 1]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue