finishing the norm
This commit is contained in:
parent
de63c562a6
commit
5ed7952cc7
8 changed files with 586 additions and 0 deletions
25
ast/src/print_ast/helper_function_print.c
Normal file
25
ast/src/print_ast/helper_function_print.c
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* helper_function_print.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/07/26 13:04:26 by rparodi #+# #+# */
|
||||
/* Updated: 2024/07/26 13:04:54 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../../include/function_declaration.h"
|
||||
|
||||
void _print_term(t_ast_terminator_kind term)
|
||||
{
|
||||
if (term == AST_TERM_NONE)
|
||||
return ;
|
||||
if (term == AST_TERM_SEMI)
|
||||
printf(";");
|
||||
if (term == AST_TERM_DOUBLE_SEMI)
|
||||
printf(";;");
|
||||
if (term == AST_TERM_NEWLINE)
|
||||
printf("\n");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue