From 39c76ea424261b4abf153916f48eef13315e0e83 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 22 Jun 2014 03:26:25 +0400 Subject: [PATCH] Extend the comment --- parser/grammar | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/parser/grammar b/parser/grammar index 0017a96..5a0c3d5 100644 --- a/parser/grammar +++ b/parser/grammar @@ -3,12 +3,15 @@ # The grammar defines expressions in the following forms: # 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, TAG | TAG - search blog posts that contain any of the tags; -# Parentheses are allowed to group expressions: +# TAG & TAG - search blog posts that contain both tags; +# TAG | TAG - search blog posts that contain any of the tags; +# Parentheses are allowed to group expressions; for example: # TAG & (TAG | TAG) # !(TAG | TAG) -# and so on. This is a simple version of the grammar and it allows +# Allowed operators: conjunction - & && +# disjunction - | || +# negation - ! +# This is a simple version of the grammar and it allows # rather stupid expressions, like !!TAG or ((TAG)); in the future # it will be fixed by making the grammar more complex and stricter. -- 2.39.2