parsing: rename minishell_group_or_smp_parse -> minishell_group_or_simple_parse

This commit is contained in:
Khaïs COLIN 2025-04-14 17:36:04 +02:00
parent 283458b24f
commit 86e658fcca
2 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */ /* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/31 10:28:28 by jguelen #+# #+# */ /* Created: 2025/03/31 10:28:28 by jguelen #+# #+# */
/* Updated: 2025/04/14 17:37:24 by khais ### ########.fr */ /* Updated: 2025/04/14 17:37:38 by khais ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -102,7 +102,7 @@ t_cmd *minishell_opt_pipeline_parse(t_minishell *app, t_wordlist *tokens)
{ {
token = wordlist_pop(&tokens); token = wordlist_pop(&tokens);
worddesc_destroy(token); worddesc_destroy(token);
opt = minishell_group_or_smp_parse(app, tokens); opt = minishell_group_or_simple_parse(app, tokens);
if (!opt) if (!opt)
ft_errno(FT_EERRNO); ft_errno(FT_EERRNO);
return (opt); return (opt);
@ -113,7 +113,7 @@ t_cmd *minishell_opt_pipeline_parse(t_minishell *app, t_wordlist *tokens)
/* /*
** TODO NORM -> function is too long ** TODO NORM -> function is too long
*/ */
t_cmd *minishell_group_or_smp_parse(t_minishell *app, t_wordlist *tokens) t_cmd *minishell_group_or_simple_parse(t_minishell *app, t_wordlist *tokens)
{ {
t_cmd *subtree; t_cmd *subtree;
t_cmd *group; t_cmd *group;
@ -203,7 +203,7 @@ t_cmd *minishell_pipeline_parse(t_minishell *app, t_wordlist *tokens)
t_cmd *opt; t_cmd *opt;
t_cmd *pipeline; t_cmd *pipeline;
subtree = minishell_group_or_smp_parse(app, tokens); subtree = minishell_group_or_simple_parse(app, tokens);
if (!subtree) if (!subtree)
return (NULL); return (NULL);
opt = minishell_opt_pipeline_parse(app, tokens); opt = minishell_opt_pipeline_parse(app, tokens);

View file

@ -5,8 +5,8 @@
/* +:+ +:+ +:+ */ /* +:+ +:+ +:+ */
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */ /* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/14 14:46/44 by khais #+# #+# */ /* Created: 2025/04/14 17:36/26 by khais #+# #+# */
/* Updated: 2025/04/14 14:46:44 by khais ### ########.fr */ /* Updated: 2025/04/14 17:36:26 by khais ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -25,7 +25,7 @@ t_cmd *minishell_cmds_parse(t_minishell *app, t_wordlist *tokens);
t_cmd *minishell_pipeline_parse(t_minishell *app, t_wordlist *tokens); t_cmd *minishell_pipeline_parse(t_minishell *app, t_wordlist *tokens);
t_cmd *minishell_opt_cmds_parse(t_minishell *app, t_wordlist *tokens, t_cmd *minishell_opt_cmds_parse(t_minishell *app, t_wordlist *tokens,
t_connector *connec); t_connector *connec);
t_cmd *minishell_group_or_smp_parse(t_minishell *app, t_cmd *minishell_group_or_simple_parse(t_minishell *app,
t_wordlist *tokens); t_wordlist *tokens);
t_cmd *minishell_opt_pipeline_parse(t_minishell *app, t_cmd *minishell_opt_pipeline_parse(t_minishell *app,
t_wordlist *tokens); t_wordlist *tokens);