/* ************************************************************************** */
/*                                                                            */
/*                                                        ::::::::            */
/*   expander.h                                         :+:    :+:            */
/*                                                     +:+                    */
/*   By: qmennen <qmennen@student.codam.nl>           +#+                     */
/*                                                   +#+                      */
/*   Created: 2025/02/18 19:00:51 by qmennen       #+#    #+#                 */
/*   Updated: 2025/02/26 15:45:19 by whaffman      ########   odam.nl         */
/*                                                                            */
/* ************************************************************************** */

#ifndef EXPANDER_H
# define EXPANDER_H

# include "minishell.h"

t_environment	*expander_get_var(const char *s, int idx,
					t_minishell *msh);
t_list			*expander_parse_variables(const char *s,
					t_minishell *msh);
char			*expander_allocate_memory(
					t_minishell *msh,
					const char *s,
					t_list *variables);
char			*expander_parse_string(char *s, t_minishell *msh);
int				expander_character_valid(const char c);
int				expander_expand_dollar(char *src, char *dest,
					int *j, t_list *variables);

#endif
