This creates an initial nearley grammar definition with associated tests. This grammar is able to detect valid querystrings containing the following features:
boolean operators (AND, OR, NOT, XOR, |, &)
nested parenthetical clauses
proximity operators (SAME, NEAR, ADJ, WITH)
modified proximity operators (SAMEn, ADJn, NEARn)
extensions and flags (*.FLAG and FLAG/* e.g. testing.EXT)
comments
The result of the parse is not yet packaged into a structured object, and there are also a few features of the specification (e.g. ~, ^, dates, $, $n, line numbers, ONEAR) which are not yet built into the grammar.
This creates an initial nearley grammar definition with associated tests. This grammar is able to detect valid querystrings containing the following features:
AND
,OR
,NOT
,XOR
,|
,&
)SAME
,NEAR
,ADJ
,WITH
)SAMEn
,ADJn
,NEARn
)*.FLAG
andFLAG/*
e.g.testing.EXT
)The result of the parse is not yet packaged into a structured object, and there are also a few features of the specification (e.g.
~
,^
, dates,$
,$n
, line numbers,ONEAR
) which are not yet built into the grammar.Related to #3