sci_watch.parser.query_evaluator module

class sci_watch.parser.query_evaluator.QueryEvaluator(content_text: str, title_text: str)[source]

Bases: object

Query evaluator class

and_clause(node: Node) None[source]

Callback method for AND clause

begin_clause(node: Node) None[source]

Callback method for begin clause

default(node: Node) None[source]

Default callback method

eval_tree(tree: Node) None[source]

Evaluate a tree in-place

Parameters:

tree (Node) – The root node of the tree to evaluate

expression(node: Node) None[source]

Callback method for expression clause

in_content_clause(node: Node) None[source]

Callback method for in_content clause

in_title_clause(node: Node) None[source]

Callback method for in_title clause

not_clause(node: Node) None[source]

Callback method for NOT clause

or_clause(node: Node) None[source]

Callback method for OR clause

parenthesis_clause(node: Node) None[source]

Callback method for parenthesis clause

proximity(node: Node) None[source]

Callback method for proximity clause

word_with_wildcard(node: Node) None[source]

Callback method for words/words with wildcards