X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=parser%2Fgrammar;fp=parser%2Fgrammar;h=0017a96479b35acc8e1b1962e63f8844850668a2;hb=9d22f4f705db6a30fa2d49fdc074b901ec3cb3dc;hp=17d3098324c6117c5c509a4c27ece95030766876;hpb=2167fc0e09f4343c0fe67c8c754e29a41769e684;p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git diff --git a/parser/grammar b/parser/grammar index 17d3098..0017a96 100644 --- a/parser/grammar +++ b/parser/grammar @@ -4,7 +4,7 @@ # TAG - search blog posts that contain the tag; # !TAG - search blog posts that don't contain the tag; # TAG && TAG, TAG & TAG - search blog posts that contain both tags; -# TAG | TAG - search blog posts that contain any of the tags; +# TAG || TAG, TAG | TAG - search blog posts that contain any of the tags; # Parentheses are allowed to group expressions: # TAG & (TAG | TAG) # !(TAG | TAG) @@ -25,6 +25,7 @@ SP1 : '[ \t]+' expression : NAME | expression AND_OP AND_OP expression | expression AND_OP expression + | expression OR_OP OR_OP expression | expression OR_OP expression | NOT_OP expression | '(' expression ')'