removed lexer_var and prototype

This commit is contained in:
Jack Halford 2017-02-07 18:07:06 +01:00
parent b613f9fb89
commit 28acb3b814
3 changed files with 1 additions and 41 deletions

View file

@ -155,7 +155,6 @@ lexer/lexer_number.c\
lexer/lexer_quote.c\
lexer/lexer_sep.c\
lexer/lexer_special.c\
lexer/lexer_var.c\
lexer/lexer_word.c\
lexer/reduce_bquotes.c\
lexer/reduce_parens.c\

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/01 12:15:50 by jhalford #+# #+# */
/* Updated: 2017/02/07 18:06:00 by jhalford ### ########.fr */
/* Updated: 2017/02/07 18:06:47 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
@ -108,7 +108,6 @@ int lexer_greatand(t_list **alst, char *str);
int lexer_quote(t_list **alst, char *str);
int lexer_dquote(t_list **alst, char *str);
int lexer_backslash(t_list **alst, char *str);
int lexer_var(t_list **alst, char *str);
int lexer_special(t_list **alst, char *str);
int lexer_comment(t_list **alst, char *str);

View file

@ -1,38 +0,0 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lexer_var.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/01/10 14:54:57 by jhalford #+# #+# */
/* Updated: 2017/02/07 17:37:25 by wescande ### ########.fr */
/* */
/* ************************************************************************** */
#include "lexer.h"
/*
int lexer_var(t_list **alst, char *str)
{
t_token *token;
t_lexstate state;
token = (*alst)->content;
token->type = TK_N_WORD;
str++;
if (!ft_strchr(token->data, '$'))
token_append(token, '$', 0);
if (!*str)
{
token_expand_var(token);
return (0);
}
if ((state = get_lexer_state(str)))
{
token_expand_var(token);
return (ft_tokenize(alst, str, state));
}
token_append(token, *str, 0);
return (lexer_var(alst, str));
}*/