From 25858c21e1c744cb2d9a43bcfce3ef9070a16e9c Mon Sep 17 00:00:00 2001 From: kappa Date: Tue, 15 Jan 2019 01:03:32 +0100 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D1=88=D0=B8=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B4=D0=B5=D1=84=D0=B8=D0=BD=D0=B8=D1=86=D0=B8?= =?UTF-8?q?=D1=98=D0=B0=20=D1=81=D0=B8=D0=BC=D0=B1=D0=BE=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- read.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/read.c b/read.c index a975d12..e56ee30 100644 --- a/read.c +++ b/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);