X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=blobdiff_plain;f=parser%2Fparser.py;h=a1dd03489c2db90ef315017fa2f7b47e3f27a630;hp=4984f1862f4a4ef165dfc7ba05a3c263e2936056;hb=4102600cf242f72781c8fee326802e9bb2267c25;hpb=4704f0477b08a12ec9f48cba494dcfd5fa0b090e diff --git a/parser/parser.py b/parser/parser.py index 4984f18..a1dd034 100755 --- a/parser/parser.py +++ b/parser/parser.py @@ -17,7 +17,7 @@ from grako.parsing import graken, Parser from grako.util import re, RE_FLAGS, generic_main # noqa -__version__ = (2016, 7, 10, 22, 31, 57, 6) +__version__ = (2016, 7, 11, 18, 15, 20, 0) __all__ = [ 'TagsParser', @@ -62,8 +62,7 @@ class TagsParser(Parser): with self._option(): self._expression1_() with self._ifnot(): - with self._if(): - self._or_op_() + self._or_op_() with self._option(): self._or_expression_() self._error('no available options') @@ -97,8 +96,7 @@ class TagsParser(Parser): with self._option(): self._expression2_() with self._ifnot(): - with self._if(): - self._and_op_() + self._and_op_() with self._option(): self._and_expression_() self._error('no available options') @@ -108,8 +106,7 @@ class TagsParser(Parser): with self._choice(): with self._option(): with self._ifnot(): - with self._if(): - self._not_op_() + self._not_op_() self._expression3_() with self._option(): self._not_expression_()