Проширена дефиниција симбола
This commit is contained in:
parent
bed3e772d2
commit
25858c21e1
3
read.c
3
read.c
|
@ -140,8 +140,7 @@ token *lex1Token(char *input, int *i)
|
|||
regcomp(®Space, "^[[:space:]]*", REG_EXTENDED);
|
||||
|
||||
regcomp(®Number, "^[-+]?[[:digit:]]+", REG_EXTENDED);
|
||||
regcomp(®Symbol, "^[-+/*]+", REG_EXTENDED);
|
||||
/* за сада подржава само симболе -, +, * и / */
|
||||
regcomp(®Symbol, "^[-+/*[:alpha:]][-+/*[:alnum:]]*", REG_EXTENDED);
|
||||
regcomp(®LParenthesis, "^\\(", REG_EXTENDED);
|
||||
regcomp(®RParenthesis, "^\\)", REG_EXTENDED);
|
||||
|
||||
|
|
Loading…
Reference in a new issue