23 return (c ==
'|' || c ==
'<' || c ==
'>');
34 return (c ==
' ' || c ==
'\t' || c ==
'\n');
51 if (c ==
'\'' || c ==
'\"')
66 if (str[0] ==
'>' && str[1] ==
'>')
71 else if (str[0] ==
'<' && str[1] ==
'<')
76 else if (str[0] ==
'|')
78 else if (str[0] ==
'>')
80 else if (str[0] ==
'<')
t_token_type
Token types produced by Lexer.
Lexer, tokenizer, expander, and quote handling prototypes.
int is_word_end(char c)
Check if a character ends a word token.
int is_whitespace(char c)
Check if a character is whitespace.
t_token_type get_operator_token_type(char *str, int *len)
Determine operator token type and its length in characters.
int is_operator(char c)
Check if a character is a shell operator.