on a retrpuve la compagnie TK_PAREN
This commit is contained in:
parent
2fbea4837d
commit
50da96bbd6
2 changed files with 6 additions and 2 deletions
|
|
@ -39,9 +39,9 @@ enum e_lexstate
|
||||||
BQUOTE,
|
BQUOTE,
|
||||||
DQUOTE_BQUOTE,
|
DQUOTE_BQUOTE,
|
||||||
BACKSLASH,
|
BACKSLASH,
|
||||||
VAR,
|
|
||||||
SPECIAL,
|
|
||||||
PAREN,
|
PAREN,
|
||||||
|
// VAR,
|
||||||
|
// SPECIAL,
|
||||||
COMMENT,
|
COMMENT,
|
||||||
END,
|
END,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@
|
||||||
|
|
||||||
char *read_state(t_sym current)
|
char *read_state(t_sym current)
|
||||||
{
|
{
|
||||||
|
if (current == TK_PAREN_OPEN)
|
||||||
|
return ("TK_PAREN_OPEN");
|
||||||
|
if (current == TK_PAREN_CLOSE)
|
||||||
|
return ("TK_PAREN_CLOSE");
|
||||||
if (current == FOR_WORDLIST)
|
if (current == FOR_WORDLIST)
|
||||||
return ("FOR_WORDLIST");
|
return ("FOR_WORDLIST");
|
||||||
if (current == FOR_CLAUSE)
|
if (current == FOR_CLAUSE)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue